does code igniter provide css or javascript to help make iframes and web pages within webpages? Any suggestions on how to go about doing this in CI? I need to make a menu that when you put your mouse over it, the button while drop down other buttons. The when you click the corresponding button the iframe below populates from the database.
No, CodeIgniter does not provide any help on Javascript manipulation. It is a PHP framework. Server based, not oriented toward client interfaces.
EDIT :
Since, this has been downvoted, let me quote official CodeIgniter documentation.
Javascript Class : Note: This driver is experimental. Its
feature set and implementation may change in future releases.
With link provided : documentation.
Plus, I have downloaded the latest version 2.0.2. It does not contain any css nor javascript files. (Except for their documentation).
Related
I would like to generate a PDF portfolio using JS from an HTML/CSS page on a local machine. I would use a PDF template file which includes a PDF portfolio Navigator in SWF form. I have successfully accomplished this using C# and a command line program, but can not identify the proper Javascipt components to do this browser-side or pseuo-server with Node.js. Basically, I am looking for something which will allow me to append a PDF to a new or existing PDF via configuration choices and an 'assemble' action using a JS or HTML button. iTextSharp provides the required PDF interaction functionality, but I can not figure out to run this inside an HTML to allow configuration via the HTML/CSS DOM (i.e. checkboxes, text field desciptors, etc...). Does a library with this type of functionality exist?
So you want to create a PDF using JavaScript?
On a quick google search, I found what appears to be a javascript library for creating and manipulating PDFs call jsPDF
If you want information on how to upload files with JavaScript alone, here is an article on how to do that. It also shows you how to use the file element.
For style, I recommend using a CSS Framework is you don't know much about CSS. I personally use Twitter Bootstrap for quickly prototyping things. It's quick and easy, and has good documentation. You can also use this to see how to make a form in HTML. I haven't got any good starter tutorials for HTML off the top of my list, sorry.
If you don't know much about JavaScript, when it comes to getting the options from the form, so that you can use them as configuration options, I'd suggest using the jQuery framework. It'll help you get up and running quickly enough
Note, all of this shouldn't replace basic training in JavaScript and HTML/CSS. Frameworks make things simpler, but if you don't know how to do something without a framework, you're going to have a hard time with a lot of the more complicated things. This goes for every language
I have single page ajax web application. All HTML structure build dynamically through pure javascript or jQuery. Now i want to convert this existing web app to responsive application. I had searching on google but i can not get it specific flow to do this. I also see lots of css framework like bootstrap,foundation,etc. Is those help to get out from this? if yes then How? My target resolution is 800*600 to 1920*900.
You can use Bootstrap, just include the files - CSS should be enough if you want just the responsiveness, or try Initializr - get the right template and copy your existing code into it.
You can also look into the FriendlyURLs feature in ASP: http://www.hanselman.com/blog/IntroducingASPNETFriendlyUrlsCleanerURLsEasierRoutingAndMobileViewsForASPNETWebForms.aspx. This will let you create mobile versions of the pages in your site.
If this is not your goal and if you are OK with commercial software, you can try the RadPageLayout control from Telerik: http://www.telerik.com/help/aspnet-ajax/page-layout-overview.html. Check it out here: http://demos.telerik.com/responsive-web-design-aspnet/.
Responsive web applications can be created by using CSS media queries. Please find below helpful link http://webdesignerwall.com/tutorials/responsive-design-in-3-steps wich provides overview of responsive approach with screenshots and demo
Good Luck!
Telerik offers yet another way to make your ASP.NET pages responsive via the PageLayout control http://www.telerik.com/products/aspnet-ajax/responsive-page-layout.aspx.
The following responsive web site is made with it: http://demos.telerik.com/responsive-web-design-aspnet/
I am working on project that allows to read document within the browser without the need to install software , It's a part of a management application for companies.
I tried out to work with iTextSharp ,PDFSharp , but these labrories don't allows you to do what I want to do.It's just for generating pdf from HTML.
I checked out for another solution , I found an interesting project developed by Mozilla Lab . Mozilla is working on technology that will allow PDF documents to be rendered within the browser, rather than utilizing a browser plug-in or an external app to open them.
https://github.com/Marak/pdf.js/
I wonder to know Can I integer this script and use it with ASP.Net ? , If yes , I will be pleased to be guided by you with code source or external links that you recommend in order to implement this solution.
I believe that link you have sighted is about creating PDF file in browser (and not about showing existing PDF in browser).
Said that, there is another interesting project pdf.js that is trying to render PDF using java-script and HTML 5. Its essentially a java-script library that takes PDF bytes and attempt to render them. As such, you should able to integrate it in any web site regardless of server side technology - include the script and make relevant calls. See this simple example to get started.
I am working with a plugin which is provide to user according requirements that provided by user at registration time. all code is run through JS and that JS generated in HttpHandler. with this plugin we are using our company logo. if user uses the our link than no problem but if any one can download the JS and can edit that and use without our logo. I want to set security so no one can use that JS offline(I mean without our link). Is this possible and how?
This is not possible. Your server sends code to the browser and then browser executes the code. It is possible to capture the code by using HTTP sniffers or JavaScript debugger (available in most of the modern browsers), modify it and reuse. The only option that is used on many sites is obfuscation - but it does not really prevents from using modified version of the code - it complicates its modification.
I am a javascript newbie. I am trying to write a requirements document, and need some help describing what I am looking for. We want our application to generate a javascript snippet like this:
<script src="http://www.jotform.com/jsform/10511502633"></script>
This will load a web form.
So my question is:
- How does a single script load an entire web form? Is this a JSON?
- What is this called? Is this a cross browser javascript?
- Can anyone point me in the direction of learning more about what this is?
Thank you for your help!
The javascript file is just hosted on an external site. It appears to be dynamically generated, so feel free to use some fancy words ;) But basically, you just include it here, as if it was on your own site.
You could say "The application will generate the required script-tags to include dynamically generated javascript file from an external, third-party site".
Offcourse you need to take special cautions for cases when the include won't work, because the other site is not reachable (site is down, DNS does not work, file is moved on other webserver, your application is on an intranet/behind a proxy/firewall...). Why can't you copy their file and mirror it locally? Or use a reliable Content Delivery Network, like Google or Amazon.
There are many names for this type of inclusion. The most common being widget.
What does it actually do:
take an id of some sort as parameter
use the id to fetch some specific data (most likely from a database)
generate some js and html based on the id/data
usually this involves iframes of some sort.
To use a script rather than an html iframe has multiple advantages
you can change what is actually delivered to the users browsers without changing the include
you can resize the iframe to fit certain predefined sizes
you can inject the necessary things into the page the widget is included (of course you need to make sure this is sanctioned)
We use this all the time and we never regreted it.
If you don't want to build the widget infrastructure yourself you can always use one of the widget providers like widgetbox:
http://www.widgetbox.com/widgets/make/
With those you are up and running in no time.
This is typically called a script include.
Google have lots of these types of items, and even they call them by many names,
widgets, custom javascript, snippets, custom code, etc. It really depending on who you are writing for... I would go with "cross platform embeddable javascript code" meaning that it would need to load all its dependancies. Also specify which browsers need to be supported and what should happen is the user has javascript turned off.
EDIT :
Actually since we are talking unique IDs, you will need 2 parts probably, the user/site unique "cross platform embeddable javascript code" and whatever serverside code to support it. Basically this is an API that is accessed using your own javascript widget. Feel free you point to examples in your requirements document, programmers love examples.