script format question
Hello - I'm making a javascript update within a javascript block on an aspx page. This page was written by a previous developer. Here's a basic example of the structure of the script block: <script language="JavaScript" type="text/javascript"> <!-- function Test() { alert('test'); } --> </script> Is there any purpose to having the html comment symbols wrapped around the js functions? When I started web programming 15 years ago I seem to remember that there might
What is my best option to re-populate the dropdown menus, each depending on others and data coming from server?
$(function() { console.log("document read"); var comingBack = "${comingBack}"; if(comingBack == "true"){ var idAndFieldValue = "" + "${testGetIDOnDemandReportFilterAction}"; var splitString = idAndFieldValue.split(":"); var selectingID; var selectingFieldValue; var tagName; var i; for(i=0; i < splitString.length-1; i+=2){ selectingID = splitString[i]; selectingFieldValue
Completed JavaScript refresher - where next?
Hello I used to do JavaScript years and years ago but hadn't returned to it until just recently. I worked my through "JavaScript in 24 Hours" which was very basic but fine as a refresher - it all came back pretty quickly. I used to do a fair bit of ActionScript too which has some similarities. So I'm comfortable with the basics again but I get the impression that real world use of JavaScript has moved on quite a bit so I'm wondering where I need to go next. I posted to the jQuery forum as first I
I can't get any jQuery code to excecute.
I can't get any code to work! As a test I have written this code. Any idea what could be causing this to not work? <body> <script type="text/javascript"> $(document).ready(function() { $('div').hide(); }); </script> <div> Test </div> </body>
jQuery Example Needed for JSON URL
Hi everyone, I have a url that returns a JSON dataset but I am not having any luck getting jquery to work bringing back the data an displaying it on the web page. Can someone provide me with an example. I checked the output format from my url and it's valid json. Here is the link I am pulling from http://www.ngsmedicare.com/wps/PA_CodeSearchTool/search/json/Ambulance?dateOfService=2012-12-11&procedureCode=A0425®ion=13102&locality=00
Getting Values in each function.
In My page have 10 fields in 5 sections. for example every section have two fields. <label>Age</label> <input type = "text"/> <label>Months</label> <input type = "text"/> <label>Age</label> <input type = "text"/> <label>Months</label> <input type = "text"/> <label>Age</label> <input type = "text"/> <label>Months</label> <input type = "text"/> <label>Age</label> <input type = "text"/> <label>Months</label> <input type = "text"/> <label>Age</label> <input type = "text"/> <label>Months</label> <input
JQuery in Wordpress
I am creating a website using Wordpress using a theme that I purchased. I want to make a change to the accordion that the designer made using JQuery, but I have never used JQuery before. I ultimately want to make the accordion function so a certain section of the accordion will open when the title of that section is linked from a different page. I don't know what changes I need to make to the JQuery or even how to access the JQuery in Wordpress to make any changes. Any help would be greatly appreciated.
print uploaded document
Hi, A column in my grid is of dropdownlist type. In dropdownlist, there is a option- "Print". When user selects this "Print" option from dropdownlist, then he shall get the printout of the uploaded document. Is there any way to achieve that? or is there any way to print the page of another url? as windows.print() will work for the current page. Regards,
raised click event on dynamic html img
Hi All, The user is able to construct a table by clicking in a button, Here is the table: <table id="MyTable"> <tr style="vertical-align:top" > <td>IN</td> <td>OUT</td> <td></td> </tr> </table> So the user presses the IN button and the timenow is entered in the IN column, if it presses the out, the timenow is entered in the out column, and at the same time i add a delete image on the third column var cell3
A little problem with my hover on a UL
Hi, I have a little problem and I'm be stuck. I want to wrote a little caption hover for an ul with images. But my problem is that the hover is activating on every li and not only on this where the mouse is over. Here you can see the sourcecode: http://jsbin.com/equyix/4/edit I would appreciate any help. BR
Adding Items to selected value in listbox at page load
Hi, I am using ASP.NET 3.5, C#. I have jquery version - jquery-1.8.3.min.js I have a listbox which has title as "Inform user groups". The list box contains 20 values in the left side. On the page load, i would like to put 2 values to the selected items in the listbox( on the right side). The values to be put are "PM", "Senior Manager". The title of the left side list box is : Inform user groups possible values title of the right side list box is: Inform user groups selected values The values
Copy input text from user and add to URL Button
Hello, I would like to know if it is possible to get the text from the following INPUT field. My code looks currently so: <!-- ID --> <div data-role="fieldcontain"> <fieldset data-role="controlgroup" data-mini="true"> <!-- Textfield --> <input name="ID" id="textinput2" placeholder="ID" type="text" style="width:100%;-moz-box-sizing:border-box;-webkit;box-sizing:border-box;box-sizing: border-box;"/>
What id the differenc between jquery-ui-1.10.1.custom and jquery-ui-1.10.1.custom.min?
Hi all: I am just starting with jquery and javascript and have a long way to go but need to get a task completed quicker than I should have to. I down loaded the version of jquery-ui and get the two files. What is the difference between the two an which should I use? thanks.
Simple timespinner for jquery?
I'm new to work in date and time, i need to create a time spinner for my application. i have used Google to get my requirement but didn't reach my requirement. i need one simple time spinner like this sample.But i need that TimeSpinner without using globalization.js. Is there any way to get simple timeSpinner like the above link?.
New here and want to ask if my project idea is a good starter project for my first go at jQuery.
I'm new to jQuery but have tinkered with Python and Javascript in the past, I am not a pro and have never made anything useful with these languages but I have tinkered with them. I can hold my own with html and css. For my first project diving into jQuery I though about making a document writer. Nothing fancy, have a pre-formatted word document (.doc) then have a html doc that has input fields for the users name and then a input field for the users last name, and maybe a few more fields asking the
New here and want to ask if my project idea is a good starter project for my first go at jQuery.
I'm new to jQuery but have tinkered with Python and Javascript in the past, I am not a pro and have never made anything useful with these languages but I have tinkered with them. I can hold my own with html and css. For my first project diving into jQuery I though about making a document writer. Nothing fancy, have a pre-formatted word document (.doc) then have a html doc that has input fields for the users name and then a input field for the users last name, and maybe a few more fields asking the
Show hide categories
I have the following jquery code <script type="text/javascript"> <!--//--><![CDATA[//><!-- $(document).ready(function() { $("#root ul").each(function() {$(this).css("display", "none");}); $("#root .category").click(function() { var childid = "#" + $(this).attr("childid"); if ($(childid).css("display") == "none") {$(childid).css("display", "block");} else {$(childid).css("display", "none");} if ($(this).hasClass("cat_close")) {$(this).removeClass("cat_close").addClass("cat_open");}
Problem with api.jquery.com
Hi, Have problem with accessing api.jquery.com from UPC network. Ping shows: PING api.jquery.com (70.32.121.205) 56(84) bytes of data. From e1.3.as06.lax02.mtsvc.net (72.10.63.250): icmp_seq=1 Destination Host Unreachable That's a glitch, because I need documentation to my work. My external IP is 89.70.33.141 . I think that You blocking whole subnet, that I'm connected with.
Using JQUery Change text in selection Option - Not working
I have an selection Option with two drop-down: New Individual and My self. I want to change the New Individual to Other, using this code but it is not working for me. $('select option[value="New Individual"]').text('Other'); It is not possible to change the HTML code as this is a commercial application (Content Management System) which I have no access to the HTML. The only option is to change it through JQuery dynamically. There are multiple selection that would have these two Options: Individual
Jquery & java script cross browser implement
I read about jquery and java-script and I was asking my self the next question: What is it about jquery that turns it to be a cross browser language while java-script is not? Can someone please explain to me what turns Jquery to be cross browser language and why java script isn't? It means that every code that i write with jquery should be supported in all browsers? including internet explorer 6-7-8? Include all Jquery plugins? Please explain.
Jquery Ajax..
Hi, I have a html pages that call a javascript. In the javascript file i call two URL that response with a text. For do this i use Ajax Call with the code below : With this code in a function, i recall the function in 2 step. The first with pass IP1, the second pass IP2 If the HTML and JS file is on my pc (desktop directory) the system work on every IP. If i put this file in my server online, i read only the IP2.! I don't understand how works only the second ip. I try to change the sequence IP2
Click called in Twice Times
I am using two forms in My page.In one form I have one button with dialog.I am clicking this button its called twice times.Is any one tell how is it called twice times? My sample code: $(document).ready(function () { $('.send').click(function() { alert('Test'); }); }); In this code clicking send button,alert called two times instead of one time.Is any bug is in this code?
Working with divs created at runtime
I am creating a series of buisiness card type presentations on a web page. Each “card” has the usual business info populated from a database. I have PHP that loops through the recordset and HTML as follows to create each of the cards with each loop. In addition to the business card there is a div that will have additional business information that will be hidden initially from the user. “ButtonA” will use some JQuery to slide that information into view or out of view as the user decides. There
How to add a button aver an image
I am using the cycling api on images. Now i want to add a button over the cycling images. Can somebody help me out with this?
.change doesn't work
I create a combox dynamically and I want to to call another function when the values change in the combobox. $("#table tr:last").after("<tr><td width='20%'><select type='text' id='legcomb-" + txtid + "'></select></td><td width='19%'><select id='subcomb-" + txtid + "'></td></tr> function __call(_id) { $("#legcomb-" + _id).change(function () { alert("changed!"); }); }); }
Trying to get multiple copies of the code to work
I am trying to get the code working - several instance of the code on the same page - ie there needs to be one one instance of the code for every item that needs a vote. Unfortunately I cannot make the code 'different enough' for each item. I know the $itemid for each item, but how does I pass this to the code below so the the vote button refers to the item it is next to. At the moment, if I click on any vote the code tries to apply the vote across every item on the page, then fails and refreshes
How to replace ComboBox values on a button click?
I have a button and I want to replace the elements of the combobox. <select id="combobox"> <option value="">Select an option</option> <option value="opa">OpA</option> <option value="opb">OpBt</option> <option value="opc">OpC</option> </select>I want when a user clicks on the button, the elements of combBox changes to a retrieved data from my database. For instance, change all: <option value="opa">OpA</option> <option value="opb">OpBt</option> <option value="opc">OpC</option>
change javascript math problem into jquery
I have the following javascript code <script type ="text/javascript"> function dti() { var tim = (document.form.debt.value - 0) / (document.form.income.value - 0) * 100; document.form.solution.value = Math.round(tim); } </s cript> How can I convert that into Jquery I have tried the following but it doesn't work <script type ="text/javascript"> function dti() { var tim = parseInt($( "#debt" ).text(), 10) / parseInt($( "#income" ).text(), 10)*100; $( "#solution" ) =
How I can move an element before his parent?
Hi, i have this code: <style> .parent { width: 100px; height: 100px; background-color: #999; border: 1px solid black; padding: 5px; margin: 10px 0px; } .title { color: white; font-size: 1.1em; border-bottom: 1px solid black; margin: 5px auto; text-align: center; } </style> <div class="parent"> <div class="child"> <div class="title">TITLE</div> Content </div> </div> <div class="parent"> <div class="child"> <div class="title">TITLE 2</div> Content </div> </div> How I can put
Mobile simulator
Hi, Anybody seen some tutorials, how to create mobile simulator like http://www.templatemonster.com/demo/43210.html ? No good searches in google, so im asking for any help. Thank You.
Dialog close not working properly
I am using Dialog in My page.I am clicking the button(Send button) in dialog popup it have closed unproperly.What is the reason its closed unproperly? My code is: <form id="forms" > <div id="app" > <input type="text" " /> <input id = "shareSend" type="submit" value="Send" onclick = "send"/> </div> </form> $('.app').dialog({ modal: true, draggable:false, resizable:false, show: 'fade', hide: 'fade' }); function send(){ $('#app').dialog('close');
What are the Uses of HotvsNot Offer Code?
Hai am a new member to this site can any one please help me about this topic What are the Uses of HotvsNot Offer Code? with some real time examples. Thank you all.
Alignment of pop-up(push) notifications in jquery
script> var NOTIFY_ENDPOINT = "php/notify.php"; $(function() { $("a[href='#notify']").click(function() { $.ajax({ url: NOTIFY_ENDPOINT, data: {"message": "I'm a notification!"} }); }); $(".notify button").click(handleNotifyButtonClick); var pusher = new Pusher('xyxyxyxyxyxyxy'); var channel = pusher.subscribe('my_notifications'); var notifier = new PusherNotifier(channel);
problems with ajax
Below is a bare bones jQuery ajax call, but does not seem to work. I dont even get the ajax status functions to fire. Please comment <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled
Jquery mobile slide panel help
Hello all, I am pulling my hair out trying to get the jQuery mobile slide panel to work. I think my HTML is correct but I must be missing something. Here is the jQuery page i have been following http://jquerymobile.com/branches/slide-panel/docs/panels/index.html Below is my page HTML. <!DOCTYPE html> <html> <head> <title>My Page</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css"
Jquery plugin not working for Dynamic validation
I have used jQuery Validate plugin for my page.I am using some inputs dynamically in my page.for example my page have 12 inputs separated by 4 sections.Each section have 3 fields. I am checking following conditions for my output 1.clicking the Go button it compulsory validate the first section of the page(first 3 fields). 2.Then enter the value in other any section it also validate when I clicking the Go button. for example I am entering the value in Second section input it validate first and section
Trouble with AJAX
I am new to jQuery, AJAX, etc and will be the first to admit I am over my head. I would be very appreciative of any help you can offer. I am building a web app that will run on iPads. I am having trouble with links within the pages. I know now that 'a href' will not work, as it takes the user outside of the app, to Safari. My main navigation works, but on one page I want to have images that link to new pages. I've been trying <a data-file= tags, but they are not working. This is what my navigation
Execute AJAX and then follow the Link (standard action)
Hello all together, i would like to count the clicks on all links on my homepage. To do this, i added an onclick action to execute my AJAX-Script, to count the click on the link. The user should be automatically redirected to the original link target. But sometimes, the AJAX Skript is too slow, and the default action (redirect to the page) ist already executed, before the AJAX script ends. I tried to solve this problem by preventing the default action, and then redirect the user via "window.location".
Using Each function
I am new to Jquery.I am working on Dynamic validation using jqueries. My code is: <form class="form" id="commentForm" method="get" action=""> <div class="cmxform" > <input type = "text" size="25"/> <input type = "text" size="25"/> <input type = "text" size="25" /> <input type = "text" size="25" /> <input type = "text" size="25" /> <input class="submit" type="submit" value="Submit"/> <div> </form> all fields are email fields. 1.In the above code, I don't know
Keep sliding when click to other page
I've made a full background slider, but when I click on a menu-item the slider starts over from the first image. Is it possible that if I click on a menu-item (to another page) that the slider keeps sliding? Here is the code: function slideSwitch() { var $active = $('#slideshow img.active'); if($active.length == 0) $active = $('#slideshow img:last'); var $next = $active.next().length ? $active.next() : $('#slideshow img:first'); $active.addClass('last-active'); $next.css({ opacity: 0.0 }).addClass('active').animate({
Next Page