How can I replace a table with a new one using jQuery ?
Whats the best way to replace a <table> with a new one using jQuery? I'm using ajax on the page to get the new data. ...
Whats the best way to replace a <table> with a new one using jQuery? I'm using ajax on the page to get the new data. ...
(Can't think of a good title :(( ) Hey all, I'm developing a bookmarklet. When clicked on it creates a toolbar on the page the user is looking at. The above involves pulling various javascript and css files from my server and injecting them into the pages DOM. I don't want to encode toolbar's HTML as a string inside one of my javascr...
Hi Guys, Interested how others are organising their scripts in Visual Studio ? Currently, the project I am working on has a large number of scripts and getting confused how to organise them into an arrangement without something like <% if (Helper.IsDebug()) { %> <%=SOME SCRIPT%> <% } %> <% if (Helper.IsRelease) { %> <%=SOME SCRIPT%> ...
I'm trying to use javascript to convert a date object into a valid mysql date - what is the best way to do this? ...
So Safari and Chrome have started in their betas to implement some ES5 stuff. For instance Object.create is in them. Do any of you know if there is a website that shows the progress made in the browsers? ATM i need to use Object.freeze, and wanted to see which browsers (if any) supported that yet. ...
i want to run a loop on a string type array, such that if array contains 1000 words than loop should give starting 200 values than break and when loop runs again than it should give values after previous 200 values, how it is possible in javascript? ...
Hi everybody. I've stumpled upon a strange behavior in IE(6/7/8) that drives me nuts. Given the following markup: <input type="text" value="foo" class="bar" cache="yes" send="no" /> Please note that the cache attribute is set to yes. However IE somehow manages to change the attributes value to cache="cache" when rendering the DOM. S...
function ship_stuff() { ship_me = document.getElementById("shipMethod").value; alert(ship_me); if("ship_me" == "priority2" ) { document.getElementById("shippingChg").value = 3.20; } else if(ship_me == "priority3") { document.getElementById("shippingChg").value = 4.30 ; } else if(ship_me == "priority4") { document.getElement...
I am trying to show the last thursday of the current month with DateJS, however this library doesn't really work for me. Could you please help me with the solution? ...
Hello! In my site if use textarea + WSYWWYG (Wyzz WYSIWYG). I would like to minimise and maximise the chars what the user typed. (for ex. min 100 max 1000). After i post the form, i check the lengt of the posted field. (strln($_POST['text'..) But the WSYWYG editors post the field in HTML formatted so if the user type:fg then the len...
hi i'm using struts (form) + validation i just want to ask if can i set focus on some field on form after validation without javascript? i think i red something in book programming jakarta struts but i can't remember. thanks ...
In the following javascript code there is [] being assigned as the value of a variable, what does it mean? var openTollDebug = []; ...
Hi all, I am not sure I am going to be able to explain this one right as it may be difficult for me to explain, but I am going to try. I have a web form which it publish the data to a XML file, then it shows the data in another web page. Everything works fine, but when the user types a double quote character, at the time the web page ...
Hello all. I have a strange problem that I cant' solve after hours of googling. The way my web application is built is not very optimal, but I can't do anything about this right now. I have made a User Control in C#. This usercontrol is hosted by a aspx-page that are inside an iframe and this page is inside a frame again. (Not optimal)...
Hi, Very strange thing is happening with the 'change' event of the dropdown list. Basically I have a dropdown, on change of which i have to do some cross domain web service call. This call is being made from the javascript itself. For the first time when i change an item in the 'select' list the change event is triggered only once. ...
I have a little problem, here, I'm reading data from a database, adding it to a table to be displayed on a webpage. The table in which this data is added lies inside a panel. To view this table, I would then use this javascript to expand the panel: <script type="text/javascript"> $(document).ready(function(){ $(".flip").click(functio...
I'm trying to access the value of a variable that is set inside a .click function outside of the function but I'll get the error, can anyone please tell me what I'm doing wrong? var id; var currentPosition; var slideWidth = 368; var slides; var numberOfSlides; $('#accordion_catering h3').click(function() { id = $(this).attr('id'); ...
Hi, I'm having trouble with an iframe-related issue. I have a document (parent) with an iframe (child). If the parent document calls a function in the child which changes the childs url using window.location to a relative url, that url becomes relative to the parent document. Let me illustrate. Parent document: /test/parent.html ...
I have been trying to figure this out for awhile. I have a multidimensional array in JavaScript that is 12 columns wide and an unknown number of rows like so /* [ [userID (int), name, username, email, password, other 1, other 2, other 3, other 4, other 5, other 6, admin(int)], [userID (int), name, username, email, password, othe...
How would I go about getting the current URL using jquery, or more specifically, getting an ID on the end of it? For example, I have product.php#tab-2. What I want to get from it is just the '#tab-2' part. I have tried 'window.location.pathname' but that will only return '/product.php' Thanks ...