Previous Ajax Call Interfering with New Ajax XML Call (update from previous post)
Sorry guys. Wish there was a way to delete my previous post. The issue all along was something else. However, it's a weird one. I'm getting a Firebug XML response error that reads: XML Parsing Error: not well-formed Location: moz-nullprincipal:{a258a2ce-874f-4563-8363-7286a3b56f82} Line Number 27, Column 29: ... pos = data.search(/<\/html><div id="old-posts">/); That's the code from my first .ajax() call when the page first loads and after the response is successful. How does ajax calls that's
how to do Cycle Plugin Next and Prev opacity 0~1 effect?
I try to follow the site:http://www.cmegroup.com/ which uses cycle plugin as a slider. my online site is http://chinaminingtj.hdsoso.com/portal.php , everything is ok but Next and Prev opacity effect? how to do ? is cycle plugin include this effect? or I miss sth. to do? can anyone help me ? thanks.
Problem using validate plugin with hidden elements
I have a form with a select that is contained in a tr which is hidden when the select is is not required to be populated. I am trying to tell validate to only validate the select when that tr is not hidden (display:none) To be more specific the first field on the form is to select country, then the second select is to choose state, but it is only displayed if the selected country has states. The validation on the first select works fine. I have tried this but it doesn't wurk- as in the form will
Internet Explorer and href text -> space removed beyond end of link
Hello - I'm an absolute beginner with Javascript and JQuery, and my HTML knowledge is rudimentary at best, so bear with me! This is a vastly simplified version of what I have on the page I'm having trouble with. When I use JQuery to add text to a hyperlink that previously had no text, and which is followed on the page by a space then some other page text, the space just after the hyperlink is removed in Internet Explorer (it's preserved in Firefox). This is a purely aesthetic issue, but it's annoying.
Body content
Hi, I write this code, but does not work as I want. When you open a page you see only a logo in the middle of the screen and then dissapears slowly (is the part I write and it works), but then I want the index appears slowly, this is the part I can not do. I had prrobed with show() and append() but does not works as I expect. What I am doing wrong? Here is my code: <!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
How do I determine what tab is referred to in the ui.tab object that is passed to the beforeLoad method?
I am still having a very difficult time trying to use the documentation to learn this library. I now know that I need to be looking at the 10.x ui lib doc. In there it says I can use the ui.tab of the ui that is passed in, but when I look to see what properties are in the Object it just gives me a general discussion of a jQuery object. I am a Java programmer, not a js programmer and I am trying to use these functions without getting too deep into js. Any thoughts or ideas are appreciated.
help with toggleClass
I'm having a small bit of an issue with my toggle class, here is the script: $('.thecourse .category').click(function () { $(this).nextUntil('.category').slideToggle('normal'); return(false); }); $('.thecourse .categoryname').click(function () { $('span',this).toggleClass('arrow-down', 'arrow-up'); The HTML looks like this: <div class="thecourse"> <div class="category"> <div class="categoryname"> <span class="arrow-down"></span> </div> </div> </div> Now i did try to write in
Pagination script do not understand, need a detailed explanation on each line. Appreciated!
Hello, everyone, I am struggling to understand what this piece of code mean, could any one help me explain its process in detail? I read through it and think its some type of data implimentation script. Btw, its in the core script file for simplepagination jquery script. Thank you all! $.fn.pagination = function(method) { // Method calling logic if (methods[method] && method.charAt(0) != '_') { return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); } else if (typeof method
Microsoft JET Database Engine error '80040e10' Parameter ? has no default value
Hi New to jQuery and trying to implement it on my site. I have an .asp site with a form attached to an Access Db. When trying to insert the form into the Db, the page halts on the #datepicker giving me this error message: Microsoft JET Database Engine error '80040e10' Parameter ?_13 has no default value. /asfalt_ny.asp, line 71 This is Parameter 13: MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param13", 202, 1, 50, Request.Form("datepickerU")) ' adVarWChar Head section: <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
dblclick problem and html char
$(document).ready(function() { $(".ie").dblclick(function(){ var defie = $(".ie").html(); $(".ie").html('<input type="text" value="'+defie+'">'); }); }); <div class="ie">jquery click</div>
How to call Javascript in external dialog file
Is it possible to execute javascript on a linked dialog where the dialog is defined in a seperate external file? I need to do javascript validation on my dialog and I cannot get any Javascript to fire when I launch the dialog from an external file. However, if I put the dialog definition in the same HTML as the page with the dialog launching link (that is a multi page HTML) the javascript works fine. I would like to have my dialog code in seperate files to decompose the multi-page HTML page
rectangular button header
How I can make the header button is rectangular rather than oval?
another resizing issue with cycle plugin
Hello and thankyou in advance for any help, firstly a little about the problem I am having, I built the page around a single image at first, then decided to put a little slide show in the place, previously I had written a little script which adjusted the image size on initial load in the $(document).ready event. and also in the $(window).resize event the script looks like this .. and worked fine with an individual hard coded image. function adjustImage() { var imgWidth, imgHeight, ratio,
code to capture first click of any field of the form
I have to fire below tracking; once on first click of any field of the form $(document).ready(function () { var s = s_gi(s_account); s.linkTrackVars = "None"; s.linkTrackEvents = "None"; s.trackDownloadLinks = false; s.trackExternalLinks = false; s.linkTrackVars = 'prop1,eVar1,events'; s.prop1 = s.eVar1 = 'Registration form'; s.linkTrackEvents = 'event1'; s.events = 'event1'; s.tl(this, 'o', s.prop1); }); So I want code to capture first click of any field of the form
jQuery2.0.2 Ajax loosing scope - Why?!
Folks, In my example below, an alert "1:emailaddress" is sent to the browser correctly, but "2:emailaddress" does not. Instead, firefox console tells me that data is undefined. Where am I going wrong? I am sure I could play with my ajax success data in this manner with jQuery 1.6, 1.7 and 1.8.... Anyone? (Help/pointers greatly appreciated) var request=$.ajax( { "type": "GET", "url": "/Dashboard/dashboard.php", "data": data, "cache": false }); request.done(function ( data ) { alert( "1:"+data[0].EmailAddress
backbone-require example issue
How do you go about changing the jsonArray inside the CategoriesCollection.js file in backbone-require example to a REST web service request? Can't get it work. https://github.com/jquery/jquery-mobile/blob/master/demos/examples/backbone-require/js/collections/CategoriesCollection.js
Timing and Loading multiple JQM URL Pages
I’m having a timing issue related to using JQM and Parse.com backend database. I’ve read up on JQM timing docs and I’m still confused. Could really use some help from someone who can point me in the right direction. OK. So, I have two separate JQM pages: www.site.com/index www.site.com/page2. The user enters the Parse.com record identifier on the first page (index), and then presses a button which calls a function which goes out to parse.com and pulls in the data. So, on Parse.com/SUCCESS, the
automatic page refresh after a few seconds
hello, can anyone help me to find a way how to update my page automatically after a few seconds? I tried to use meta ... but strangely applying it to the main page makes me even upgrade to the other. thanks These are the examples I've tried: var a = setInterval window.setInterval (some, 2000), some function () {window.location.reload ();} --------- ---- and <meta http-equiv = "refresh" content = "10"> the following codes work but I also update the other pages on my site that does not have this code.
weird behavior with JQuery dialog box with modal=true and IE10 compatibility mode
Hello, I'm noticing some weird behavior with the JQuery dialog box that might be a bug. If I set modal to true and I open my dialog box in IE 10 with compatibility mode on, it seems to do a whole bunch of processing that slows everything down. If I try to drag my dialog box by the title bar, it takes several seconds to respond (that is, to actually move). Similarly when I click the buttons--it takes several seconds to respond. Also, the page itself seems to hang temporarily as I cannot close it immediately
Uncaught Error
Uncaught Error: Syntax error, unrecognized expression: #test + [id=[object Object]] someone can help me in this error? var selectedOption; if (specialisationId) { selectedOption = this.$('#test [id=' + specialisationId + ']'); } else { selectedOption = this.$('#test option:selected'); } console.log("selected option was " + selectedOption.text()) var selectedOptionText = selectedOption.text();
Jquery autoscroll offset from top of windows or tie to bottom of window
I'm a bit nooby about jquery and I need help with one practice I'm doing... I've made a autoscroll script with plugin ScrollTo and everything is working. It scrolls till the first class called in html. But I wanted to be rather showed on bottom of my window than on the peak top... I don't know how to solve it... Maybe 'faking' with somekind of offset from top?? Please help me.. I'm desperate... Here is my jsfiddle, and you can update it freely: http://jsfiddle.net/qgPch/1/
.ajax() Not Reading Returned XML Data
Hello everyone. The request is being made successfully to the server. The server is returning the xml data because I see it in Firebug. It returns a string that is a copy of the page and at the end it has my xml data. So the return info looks like this: <html> //copy of full page plus scripts </html><?xml version="1.0" encoding="utf-8"?><comments> (all of the xml data) </comments> Why it's returning a string, I'm not sure because I send the header info too in the php code: header('Content-Type:
Onkeyup function
Hi, I have been working on the following script: <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> </head> <body> <form name="contact" id="contactForm" method="post" action="count.php"> <label for="FNO">Enter First no:</label> <input type="text" name="FNO" id="FNO" value="" /> <label for="SNO">SNO:</label> <input type="text" name="SNO" id="SNO" value="" /> <input type="submit" name="submit"
JQM + Highcharts
Is there a way to lock JQM pages in different orientations? For example I have a five page app. While the first four pages are designed to be shown in the portrait mode, the fifth page is a Highcharts plot that needs to be displayed in the horizontal orientation. I can't use css to rotate container as some of the Highcharts functionality ( tool tip) gets messed up by this. Is there a way to preset page orientation on the page-by-page bases? Thank you.
Confused about what to include
I'm fairly new to jquery. I'm using the code shown below for a dialog. I found it on the web and it said to include <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> That works fine. But then I thought I should use a later version of jquery so I replaced the above with <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>That prevented the dialog from working at all. I found that if I included both of the above it will work.
Redirect to mobile website
Hi, I'm making a mobile website and to redirect to mobile version i used this code <script> if (document.location.search.indexOf("skipmobile") >= 0) { document.cookie = "skipmobile=1"; } else if ((document.location.hostname.match(/\.mobi$/) || screen.width < 699) && document.cookie.indexOf("skipmobile") == -1) { document.location = "mobile/"; } </script> but the problem is this when I access the website on mobile it does change the url to like this www.testsite.com/mobile/ path to the mobile site.
Enter key problem in text area, the value entered in text area along with enter key ????
Hi folks, After I "enter key" in textarea field and then save the form,when the same data is retrieved in popup window when we click on that window due to data consists "enter" key in between data...java script cant able populate the data(popup)?? how to resolve this ??one important point is we need allow user to press key!!!!
Problem with dragover and iframe
Hello, I have problem with dragover and iframes. In FF everything is OK, but Chrome and IE want not initiate events over iframe. Please take a look at sample: http://msdrop.com/msdrop-jquery-test-iframe-frameset.htm Try drag over and drop sample HTML elements on iframe A and iframe B. IFRAME A (the same domain) - when you drag any HTML element from parent page over msDrop.com system in iframe, everything is OK, you can drag over, leave, or drop. IFRAME B (other domain) - dragover not working from
New to Jquery Mobile / Demo Problem
Hello, Im about to take the plunge into Mobile but I am having problems with the demo's. I cant get any of the demo's to work. Im using XP and Chrome My Chrome is current. Im viewing in incognito mode. My XP...not so much, but as current as it can be... Any thoughts? Thanx
Where to send patch?
Hi I made a small improvement to the dialog widget, added a rollup (where only the titlebar is showing, no content) possibility. Where to send the diff file for review, and if passed merge the ui core?
Jquery treeview
Hi im new to jquery .. i need to develop a treeview using jquery .foe im downlaod the jquery treeview plugin..in need to generate the table using the json data. can u send me any example.
Dynamic List not displayng JQM style, tried several fixes to no avail...
Hi, I have tried a ton of solutions and am in the hair pulling stage, if anyone can help it would be deeply appreciated... TIA. :) I am attempting to display the contents of a JSON array in my HTML with proper styling in place. Here is the JSON array I am loading: http://highendwholesale.com/json.php Here is the result I get when using the code below, as you can see it loads fine but without styling -- if anyone can help me get this working I would be grateful: http://highendwholesale.com/test.php
Jquery with Dynamic Content
Hi folks, I've been attempting to use random jquery plugins when writing vbscript programs, and they work fine as long as my content is static and hardcoded, but the majority of my content is loaded dynamically after the initial page load. I've googled around but I can't find a good solution. I've found ajax solutions, but that requires php or another site loading my data back. All my data comes from embeded functions from a button click. Is there any way to force a jquery plugin to reload itself,
errorPlacement Working Positioning for single element
Hey all, Im trying to work with errorPlacement. I would like to change the position and color of one field while keeping the others default but having a difficult time with it. here's the jsfiddle code: http://jsfiddle.net/Kn3v5/220/ - click submit to see errors - "Please select an option" - default error message - "Accept the TOS" - should be flushed and purple (2E0854) Any help would be appreciated.
Multiple JQUERY scripts on the same page
Hi there, I know this has been asked many time, but none of the answers have worked, I need two scripts to work on the same page, heres what I have got so far: <script src="js/jquery-1.7.min.js" type="text/javascript" charset="utf-8"></script> <script src="js/jquery.modern-ticker.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.slider.min.js"></script> and.. <script type="text/javascript">
Can I have help Please on a special request for Links
Hi, I am tryin to create a calendar of past editions of a magazine section. Every month is a Flash file photo gallery, I already have the current month replicating, BUT, I need to call every and each of one, of the pass editions, but NOT to creating new pages for every pass edition, What I want is to be able to call the SWF over the same page, I know is something with functions, and I been looking witout any seccess. I wonder if jquery can do something like this, it is basicly a Gallery but not of
Filtering option send to ajax request as data
I wanted to combine paginate and filtering by options using jquery ajax request. this form is for filtering purpose: <form id="formfilter" method="post" enctype="multipart/form-data"> <div> Genre:<br /> <select name="filterGenre" id="filterGenre"> <option value="all" selected="selected">All</option> <option value='1'>Education</option> <option value='2'>Entertainment</option> <option value='3'>Documentary</option> <option value='4'>Short Content</option> <option value='5'>Animation</option> </select>
annontating a link w/an image using jquery.
Hi all was following a tutorial where jquery was ussed to append an image to a link so for example I have in the html: <ul id="list2"> <li class="a"><a href="www.google.com"> google</a></li> <li class="b"><a href="imgs/logoPH.jpg"> a jpg</a></li> <li class="a"><a href="imgs/v2.0_L2_Technology_expanded_dlm01.png"> a png</a></li> <li class="c"><a href="apdf.pdf"> item
CKeditor - Destroy instance
Hello Does anyone here know anything about CKEditor? I've got it installed on my site and it works great in FireFox and Chrome. But IE 9 is causing problems. For some reason I can't destroy the CKEditor instance in IE 9. Following is my script: $("#ckSubmit").click(function(){ // grab reply editor data var editor_data = CKEDITOR.instances.replyTxtarea.getData(); // Push getActivityID and editor_data into array // getActivityID; is activityID variable
.hide not working when I have fadeTo as another function?
Okay so heres the new topic. Take a look at this: http://jsfiddle.net/QXJN8/ I was using the hoverIntent to make it run smooth but oblivious I dont know how to link it up in jsfiddle. Any help??
Next Page