XML on jQuery?
Hi, I couldn't find any documentation on creating XML documents dynamically with jQuery. I only found AJAX samples. Doesn't jQuery provide functions for creating XML documents and manipulate them? Thanks.
Jquery Plug in for auto print strings on a pdf file
Hi, I was wondering if there is a jquery code that will print my strings on to a PDF file? IF so where can I find this? Kind regards, Amadeo
Start a jQuery function on page display
Hello everybody, I'm currently working on a animation whit jQuery to brighten up my website. I wrote a function for the animation and now I want to start it from the beginning. So that when the page is loaded, the animation will start. On the internet I found a lot of documentation on how to do this, and I must say it works but not like I want it to work. I want to move a div whitout moving his container, in which it's placed. Could someone tell me how to do this, down below you'll find my current
Prototype to JQuery - A Question about Event Delegates
Hello Peeps I'm in the process of moving from Prototype to JQuery and I've hit a snag. In order to try and wrap my head around the JQuery way of doing things I decided to write a wizard plug-in that will help with a project I'm working on and speed up the learning process. The problem is this ... When the "next" button is clicked I check to see if it moves the user to the last step in the wizard and change the value of the button to "Finish". I also need to change the click event's delegate so it
Simple Jquery Admin Help
Hi, I'm a total newb at jquery so any help is much appreciated. I'm currently building a lifestreaming website that will pull in feeds from social media sites like twitter. I'd like to make it useable for people that aren't actually web designers. What I'd like to do is create a simple, 1 page admin where the user can enter their username for each of the included social media profiles and have it added into the code automatically. That way they would not have to actually edit any code to get the
Site wide jQuery
How do you make jQuery aware of multiple pages on a site? Suppose, for example, you wanted to construct a shopping cart that kept track of items on a "shoe" page a "shirt" page, a "dress" page and then gave you a listing of all the items you had purchased with a total. It seems that the JavaScript on each page just knows about things that happen on that page. Thanks.
i need some help! i'mhaving problems with $.getJSON
As far as i can see the code is correct, and if you go to the JSON Script that the code is trying to pull from, as far as i can tell the JSON is correct, but alas, my page does not work! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
JQuery.get() and Javascript objects
Hi, I am complitely new to Javascript and JQuery. And I think that I run into problem that could be related to scope of javascript variables. I am trying to build CSSParser object with _strCSS member variable and method that uses .get() to populate _strCSS with content of the file. Here is my example: function CSSParser() { this._strCSS = ''; this.parseCSSFile = parseCSSFile; } function parseCSSFile(cssFile) { $.get(cssFile, function(str){this._strCSS = str;}); alert(this._strCSS);
Fading in Groups of images when they load.
Recently, I have been working on an online magazine using a javascript plugin. Clicking the pages causes a turn animation in the book. The pages are in div tags and are made up of images, so I put an img tag inside the div tag. Since the image files could be quite large, I decided to put an animated loading gif that would fade out when the image for the page had loaded. My problem is with the jquery code for this. When I do this . . . Page of magazine structure in html: <div class="pageholder" name="Home">
Display divs in a specified order
I have a list of checkboxes that a user can select and drag and drop in any order. The selected items and the order that they are in are saved in a cookie value (using a cookie plugin). The function below retrieves the cookie value and loops through the values stored in the cookie and now I want to display only those div sections which are in the cookie and in the same order (this is the part that I'm having trouble with). I have each div with a style of display:none and I could just just the
parsing lavalamp class with jquery
Hi, I am trying to replace a div with: $("a[name='3']").click(function(){ $("#middlediv") .fadeOut(400, function() { $(this).html("<H1>Services</H1>"); }) .delay(400) .fadeIn(400); }); which works great when I don't have any classes to apply. How do I need to code so that my classes are applied i.e.: <ul class='lavalampbottomstyle'> Although the list of links is displayed, the background of the active link is not. Keep in mind this is a lavalamp menu, I am calling
Function(data) not being executed after $.post ...
Hi, I am new to all this but making good progress and having fun in the process. ok, I have written quite a bit over recent weeks (including a few $.post / $.ajax calls) for various sites/applications but this one is really puzzling me. Here is a snippet of code that is causing me problems. $.post("/cgi/pmdb/getTSDs.pl", {team: ui.item.id}, function(data) { alert("Data>" + data + "<Data");
jquery stopped working!!!!
i have just changed hosting provider and have migrated my site to the new server - now though some things are not working. I have two scripts which use json to populate drop-downs that are no longer working - there is no error, just a blank response. The strange thing is that at least one of the scripts is present elsewhere and is working fine.
Much closest()
If i have this: <tr id=ok> <td> <button id=trigger> Button </button> </td> </tr> and this: $('#trigger').click(function(){ alert($(this).closest('tr').html()); }); I get this: <td> <button id=trigger> Button </button> </td> But i need: <tr id=ok> <td> <button id=trigger> Button </button> </td> </tr> How do i do without use parent() ? or what i'm doing wrong?
JQuery Documentation: Current XML Source URL?
Hi, I read there's an XML file online providing the jQuery API documentation in XML format? For training purposes I'd like to create a web page, using jQuery to read this XML and display a dynamic API reference. Can someone please provide me with this URL? Will the current API documentation always be available through this URL? Thanks for enlightening me!
Centering an image in the viewport
I have 50 thumbnails running vertically down the page, so that the viewer must scroll quite a bit to see them all. When a thumbnail is clicked I want to display the full size image in the middle of the viewport. Thus, the top offset of the absolute div that displays the full size picture will change depending on how far down the viewer has scrolled. I can bind a function to the <img> tag that will set the top offset of the div where the full size images are displayed but I don't know how to get
code not working properly in IE
hi guys, i have a select dropdown list working fine in firefox...but in IE it is not dynamically changing. i am using Jquery 1.32 here is my code $(function() { $(document).ready(function() { $('#provider').load("ajax/order.php?atask=getallproviders", { 'current' : $('#current').val() }); $('#tarif').load("ajax/order.php?atask=gettarifs", { 'selectprovider' : $('#current').val(), 'current' : $('#current').val() });
Anyone want to take a stab at this one?
So pretty new to jQuery and Im having some problems getting this script to work in IE7&8. Any help would be much appreciated. You can check out the actual files at: http://www.uaf.com/default2.htm (jquery is in the head section) http://www.uaf.com/default2/includes/main.css $(function(){ var thisInterval = setInterval("rotateSlides()", 5000); $("#slide1").addClass('current'); $("#Btn1").mouseover( function(){ $("#slideshow > div").css({opacity:0.0});
fading to red
Sorry for the basic question. I'll be up to speed soon, I think. I have menu links now where the displayed text snaps from white to red when you hover over them: div#navbar li a { background: url(../media/ButtonColumnLight.png) repeat-x; font-family:Verdana; font-size: 18px; letter-spacing: -1px; line-height:25px; text-decoration:none; color:white; float: left; height:30px; width: 161px; text-align: center; border:0; outline: none; } div#navbar li a:hover { color:red;
Passing arguments to a bound function
I have some HTML now that calls a JavaScript function that plays a video when you roll over an image. When you roll over a different image a different video plays . The markup looks like this: <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> var flvP; function myInit() { /* called by body onload */ var isIE = navigator.appName.indexOf("Microsoft") != -1; flvP = (isIE) ? window['flvPlayer'] : document['flvPlayer']; } function playVideo(vid)
jquery-1.3.2. conflict with other files (website related)
Hello, I am currently trying to build a website using JQuery, My website was working perfectly with the javascript provided by some user online for a specific usage, however when I tried to add some new things to my website with other javascript (such as, jquery-1.3.2), it conflics with other parts of the website. My question is: is there a way to contain the HTML code, CSS, etc for a specific javascript, and then some other code with other javascript, so that they wont conflict with each other..
Beginner: where to declare jquery events' handler?
I'm starting with jQuery. I have written the follonwing scripts in a web page: <a href="http://jquery.com" id="jquery">JQuery</a> <a id="weba" href="http://jquery.com"> <a id="compa" href="http://jquery.com">Ordinateur</a> <script> $(document).ready(function(){ $("a#jquery").click(function(event){ alert("Click JQuery OK"); event.preventDefault(); }); }); </script> <script> $(document).ready(function(){
thumbnail src - fadeIn effect
Hi all. I am trying to get this fading in. It does show the src of the thumbnail at img#big .... I don't seem to get the fade in working or maybe another nice transition. what am I doing wrong? tia Gina $(document).ready(function(){ $("img.small").bind('mouseenter', function(e){ $("img#big").attr('src', $(this).attr('src')).fadeIn('slow'); }); });
Changing the "top" value for a relative div with a mouse event
I'd like to use jQuery to change the "top" value in div#video below when various images are clicked. That is, clicking one image sets it to 250px, clicking another to 350px, etc. #video { position:absolute; left:33px; top:140px; } I've looked through "Learning jQuery 1.3" but the focus there seems to be on adding classes to an element or animating an element. I didn't see a way to just go in and change the value of an existing style rule. Thanks for any suggestions.
Change text onclick
Hi, Im very new to jquery. I have a "contact" button which toggles a box open and closed. Im trying to do it so when you click on "contact" the contact text will change to "close". Then when you click on "close" it will change back to "contact". Here is a link to the site: [url]http://identityconsulting.co.uk/test10.html#[/url] Below is my full site code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
conflict jquery
Hi, I am very for the jquery , can anybody give the answer when i include jquery in my index.php file then other java script not working like other moo too and many more so what's the problem please give me the answer
Embedding swf files.
I'm just getting started wit jQuery, but I haven't found a way yet to simplify the embedding of swf objects, similar to the Mootools Swiff module. Does jQuery have something like this? Thanks.
Downloading jQuery for MAC
Hi, i've followed all of the instructions to download jQuery, but for the my mac it does not offer me a file to save, it just opens a new tab and fills it with a load of script! I've watched tutorials all over the net, but no one has been having the same problem that i'm having. Could anyone using a mac please let me know what is going on, or what i'm doing wrong. Many thanks.
fadeIn / fadeout document.getElementById("middlediv").innerHTML
Trying to get my head around JavaScript and Jquery and am working on some samples. To replace div content I am using document.getElementById("middlediv").innerHTML activated by the menu item <a href="javascript:eventdivreplace(0);"> calling the appropriate content based on the selected id. That works fine, but... I like the jquery fadeIn and fadeOut effects and am not clear how I can attach this functionality so that when the divs being replaced there is a smooth transition between them. How is
problems creating a code output for a skinning tool
I'm having problems with a jQuery prototype I'm working on. It's a skinning tool, and it allows you to choose colors and specify a URL for a background image. When you're done you can press a button and it generates HTML/CSS code and displays it in a text box: $('#getCode').bind('click', function() { //Script defining codeHead and codeEnd variables var skinOutputUrl = $('#skinImgField').val(); var skinOutput = '.ymp-skin{background-image:url(' + skinOutputUrl + ');} .ymp-color-main{
Collapsible Panel using JQuery
Hi, I am very new to JQuery. I have implemented a collapsible panel using JQuery with the help of some code I found on the net. It is as shown below. <div id="ContainerPanel" class="ContainerPanel"> <div id="header" class="collapsePanelHeader"> <div id="dvHeaderText" class="HeaderContent"> Your Projects </div> <div id="dvArrow" class="ArrowClose"> </div> </div> <div id="dvContent" class="Content" > <asp:GridView ID="gridProjectSummary" runat="server" AutoGenerateColumns="true" EmptyDataText="No
help the relationship between <span class> and jquery
I got some code as following <font size="3"><label>Version:<SPAN class="json_cmd" style= "display:none">{'variable': 1, 'task': 'TESTER', 'name': 'testerVer', 'value': "0.0.0.1", 'attributes': "" }</SPAN></label></font> it looks I am able to use element with class=json_comd as following $(".json_cmd") my question is what about " {'variable': 1, 'task': 'TESTER', 'name': 'tseterVer', 'value': "0.0.0.1", 'attributes': "" } " , is there any idea what this is ? Many Thanks KevinSK ...
what do you do if you have 3 events in JQuery?
what do you do if you have 3 events in JQuery
toggle open too many elements
I have a series of divs with internal divs. I want only the internal divs of the clicked parent to open. With my code all the internal divs of all the parent divs open at the same time. I think I should be using (this) to target just the children of the parent div but I can't get the code right. Also, I want all the internal divs to be closed when the page loads but my code is not doing this either. You ave probably guessed I am a beginner! Help gratefully appreciated. <div id="yacht01" class="toggleLink">
Div inside div
<div> <div id="menu" style="width:30%;"> <input id="Button1" type="button" value="button" /></div> <div id="newdivs"style="width:70%;"></div> </div> <div id="divtoadd" visible="false"> <h3>this is my div</h3> <h4>body</h4> </div> 1.i want that when i click on button, div to add must be added in the newdivs, 2. second i want to add cross button on divtobeadd, how to do that
Desperate and looking for the right files !!
Hello, I'm new to JQuery and I need help regarding its installation. I am on a project where the previous developpers used : jQuery JavaScript Library v1.3.2 jQuery UI 1.7.2 The main use of JQuery actually, are the notifications. What I want to do is to use the Accordion from a new version of "ui". The sample I have found, uses these three includes: http://jqueryui.com/latest/jquery-1.4.2.js http://jquery-ui.googlecode.com/svn/tags/1.8rc1/jquery-1.4.1.js http://jquery-ui.googlecode.com/svn/tags/1.8rc1/ui/jquery-ui.js
Accordian script
Hey guys, I am hoping someone can help with this. I created an easy accordian script. Works great, but I want it to do the opposite of what it is doing. So instead of the content sliding down, I want it to slide up. Can anyone help me out on how to accomplish this? J
Rails dev w jQuery : issue in relative path...
My web app is deployed with Passenger in a sub-uri, http://www.mydomain.com/vacademy/ and I am displaying a player in a page the swf is located in ../public/dist/flowplayer-3.1.5.swf Using Prototype library I wrote a script : <script> $f("player", "./dist/flowplayer-3.1.5.swf", { .... and I don't have any problem to get the player installed from http://www.mydomain.com/vacademy/dist/flowplayer-3.1.5.swf but when using jQuery <script> $(function() { .. $f("player2", "./dist/flowplayer-3.1.5.swf",
jquery gallery
Hi i am new to jquery and i need some help with this image gallery http://spaceforaname.com/galleryview#demos i just get a blank page, all the js scripts are referenced ok, so i cant see why its not working?? my code is: <html> <head runat="server"> <title></title> <script src="jquery-1.4.2.min.js" type="text/javascript"></script> <script src="jquery.galleryview-2.1.1.js" type="text/javascript"></script> <script src="jquery.easing.1.3.js" type="text/javascript"></script>
jquery image gallery beginner
Hi i am new to jquery and i am trying to get the simple image gallery to work, but all i get is a blank page. i am using this version http://spaceforaname.com/galleryview#demos and i have the following code, any ideas why this would not work? all my js files are correct. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head runat="server"> <title></title> <script src="jquery-1.4.2.min.js" type="text/javascript"></script>
Next Page