I use JQuery UI Tabs version 1.10.3. Loaded the pane data using AJAX. I saw a sample of implementing bookmarkable JQuery UI Tabs but it is static tabs (not AJAX loaded), as you can see the sample here http://jqueryui.com/resources/demos/tabs/default.html#tabs-2
Tried to find some solution on how to combine AJAX and bookmarkable features but no success. Anyone can help me with any solutions or enlightenment?
Thanks in advance.
http://muledesign.com/2009/05/bookmarkable-tabs-with-jquery-ui/
This has worked out great for me.
Here is a sample found on the page that is of interest.
http://muledesign.com/demo/tabs/default-tabs.html#comments
He's using a different jquery version but I don't know how much that matters.
Related
I would like to create a javascript quiz that will work exactly like this one...enter image description here but the issue is that this one is written in Jquery and I need it in Javascript not Jquery. Any suggestions?
I tried online tools and coverters but they couldnt help me. Here is the Jquery code below:
I have a problem...
I'm working on a dialog in which there're two buttons that are linked with two different actions.
I'd like to have two Ajax requests when the buttons are clicked.
I tried every kind of javascript scripts but it dosn't work...
I premise that in the page of the dialog I haven't included jquery mobile scripts (in the guide is said that dialogs don't need links to the script if they're called as dialogs through a link [data-rel])
It seems that inside dialog external javascript code isn't loaded...
This is a problem...
Do you think it's better to call the dialog with a simple link (without data-rel and with data-ajax=false) and replace data-role=page with data-role=dialog (I mean inside the dialog page).
Thank you
Best regards
Luca
I found the solution through Jquery mobile forum...
The problem is that for dialogs the javascript code must be wrote inside the page div and not at the end of the body (the classical position of javascript code).
So your code will be loaded and will work...
I am working with chrome extension development and bubble box jquery plugin.
I need to get current browser html content using chrome extension so that I will add html content on It using bubble box jquery plugin.
Have you any idea how to get html content.
Thanks in advance
Well, you are using jquery so the easy way to get the entire page's html is $(document).html
This is pretty basic stuff. Are you stuck trying to figure out how to create your first working chrome extension?
None of the ajax examples on the w3schools site seems to work for me in firefox 3.0.19
For example: http://www.w3schools.com/ajax/ajax_database.asp
Any ideas how this should be fixed? I've got the same problem on my site...
You can start fixing it by avoiding w3schools altogether. When I read "for IE6, IE5" in the example source I had a shudder.
As an AJAX beginner it would be easier and simpler if you used jQuery or some other JS library's AJAX facilities. Googling for "jquery ajax tutorial" should give you more than enough to get started.
A final aside: upgrading FF to 3.6 or 4 would also not be a bad idea.
Check whether Javascript is enabled in your "firefox" browser.
Install the Firebug add-on and look in the console.
My guess is that you have something like NoScript installed, or the Web Developer toolbar with Disable JavaScript set to true. I have done this lots of times :)
I'm to make a firefox extension which will inject some js code as well as whole jQuery lib.
I want it to happen (the injection) when user pushes the button placed somewhere in the browser. I have read docs form MDC and other tutorials about making the extensions and they seem complicated to me. Technologies such as XPCOM or XUL are completely useles form me (I have no time to learn them in fact). My question is, is it another way of solving my problem then following MDC? I need to find quicker way of doing my task.
I've already written the extension for Google Chrome, and it was a way simplier than doing it for Firefox.
I would take a look at Greasemonkey. It shares some similarity with Chrome plugins in function (Script gets injected on the page, local storage, etc). As for using JQuery with Greasemonkey, look at this question: How can I use jQuery in Greasemonkey?
You can use a bookmarklet to add jQuery to a page and/or inject any other code.