14,053 Topics

Member Avatar for
Member Avatar for dwlamb

I have two forms that are fairly identical located on different pages of a site. In order to call distinct jQuery ajax functions there are two class names I need to alter. For one of the pages, I place this script <script> $(document).ready(function(){ $(".itemDelete").switchClass("itemDelete","LibraryItemDelete"); $(".itemEdit").switchClass("itemEdit","LibraryItemEdit"); }); </script> and it is …

Member Avatar for dwlamb
0
170
Member Avatar for dannjoroge

can any one please help me on how to write a jquery that checks two drop down inputs and determines the third from the database ..please help am really stuck

Member Avatar for JorgeM
0
42
Member Avatar for Priti_P

is there any option in javascript/jquery to know whether browser's javascripts are disabled or not? like if browser's javascripts are disabled then give alert to user that "Enable Javascript".

Member Avatar for almostbob
-1
104
Member Avatar for Mian Sahib Jan

me have two projects now me want to call the function 0f one project an another project for example me have project A and B in A there are a javascript funtion which me want to call in project B on button click ...how it possible can any one explain …

Member Avatar for urtrivedi
0
152
Member Avatar for Himanshu Chawla

**I want to track Email if opened by user and increase the count in my database.** **I have tried a lot a things like image sending and bgsound but none of them worked. But now i will do with the help of image sending. I am not getting the idea …

Member Avatar for iamthwee
0
243
Member Avatar for brugernavn

Hello, I am trying to "transfer" geolocation-data to a php script. I think, that the reason it wont work is, i can't get the varible from outside the function. So far, i got this code. How do i get it to work?! :) <body onload="office_getLocation()"> <script src="min.js" type="text/javascript"></script> <script type="text/javascript"> …

Member Avatar for DJBirdi
0
501
Member Avatar for nadiam

Hi. i got table A(contact-names) which is where name are populated to from db and table B(guest-names) where names from table A will be appended to. this is the js i came up with to append the names: var msg2 = '<tr class="tr"><td><input type="text" name="GName" class="input-name" placeholder="Doubleclick on a name." …

Member Avatar for nadiam
0
487
Member Avatar for Dinesh Dev

Hi everyone I am working on a client server based project(I am new in this field) where I have to bring the name of all dir and files inside dir from server and show it to user.For client side I am using HTML+javascript+jquery, I am sending request through Ajax and …

Member Avatar for AleMonteiro
0
648
Member Avatar for dlmagers

Hello, everyone. I am working on an application that I think I may need a little help. Yes, I am new to this language so I hope you won't be to hard on me. I am sure this is something stupid (mistake) but if someone would lean a helping hand …

Member Avatar for dlmagers
0
263
Member Avatar for developer707

I am trying to get a variable from a javascript function, but I am having a problem getting it the variable value outside the function. The variable value can be outputted just fine inside the function. Here is the script, but how can I get the value of status and …

Member Avatar for developer707
0
576
Member Avatar for 9tontruck

I am trying to integrate Leaflet (http://leafletjs.com/index.html) I just copy-and-paste'd the very first demo code but it only displays a gray map.. Here is my code: <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> </head> <body> <div id='map'> <script> var map = $('#map'); map.css('height', 375); map.css('width', 500); var …

Member Avatar for 9tontruck
0
339
Member Avatar for iamthwee

Hi guys this one has got me stumped. I'm making a page builder where you can create column divs the maximum per line is 12, each one floated left. Trouble is I need a clear float when the div column exceeds 12. This is all dynamic being a drag and …

Member Avatar for iamthwee
0
222
Member Avatar for accra

Diafol, anybody pls help. i have this javascript code <script> FB.init({ appId : '00000000000000', frictionlessRequests: true, }); function sendRequestToRecipients() { var user_ids = document.getElementsByName("user_ids")[0].value; FB.ui({method: 'apprequests', message: 'Great App', to: user_ids, }, requestCallback); } function sendRequestViaMultiFriendSelector() { FB.ui({method: 'apprequests', message: 'My Great Request' }, requestCallback); } function requestCallback(response) { console.log(response); …

Member Avatar for accra
0
2K
Member Avatar for nadiam

Hello. I just thought of adding the js print function to a page im building. from what i read i know it is pretty straight forward, use window.print. i was thinking about some of these sites that have this printing function that when a button or link is clicked a …

Member Avatar for nadiam
0
3K
Member Avatar for amraam

Alrighty guys, I'm trying to get myself started with using an API called tinysong that'll use XML HTTP objects to take in specially formatted URLs to return a json object with song metadata. See [code](http://pastie.org/private/jrvd6jwi2biavkgwvz7o7w#2) . (BTW I have replaced myApiKey with my own API key.) I believe I've done …

Member Avatar for AleMonteiro
0
265
Member Avatar for Bharadwajcvrg

Hi Team, I am trying to enable only the upcoming 2weeks i.e from current week friday to the second week thursday. For example: today's date is 25th so the upcoming friday will be 27th. So I would like to enable the date from 27th Friday June to July 10th Thursay. …

Member Avatar for DJBirdi
1
237
Member Avatar for ultmt.punisher

I am wondering how can I multiply an element value by selecting from `<option>` tag? for example I have a `<input type='text' value='9'> text tag` or `<span>9</span> tag` and I want to multiply its value by selecting option tag likewise <select name="" id=""> <option value="1/month">1/month</option> <option value="2/month">2/month</option> <option value="3/month">3/month</option> <option …

Member Avatar for ultmt.punisher
1
1K
Member Avatar for davy_yg

Hello all, How to create registation bar like the following link: [Registration bar](http://www.squline.com/en/register) You see that you can view the registration progress before you step in by numbers. How to create such a thing? Thanks in advance.

Member Avatar for iamthwee
0
52
Member Avatar for Raymond_4
Member Avatar for iConqueror
1
178
Member Avatar for munchlaxxx

I'm having some trouble adding more than 1 marker to my map. If I want to display one marker, it works fine. Here is what I have: <script src="https://maps.googleapis.com/maps/api/js"></script> <script> function initialize() { var map_canvas = document.getElementById('map_canvas'); var map_options = { center: new google.maps.LatLng(42.3581, -71.0636), zoom: 13, mapTypeId: google.maps.MapTypeId.ROADMAP } …

Member Avatar for iConqueror
0
264
Member Avatar for Priti_P

Hello, I want to ask user about leaving page when there is some **not saved data** on page. I wrote code <script> window.onbeforeunload= function() { return "Save your data plz"; }; </script> But the problem is when am submitting data, then am rendering another page. Due to this confirm message, …

Member Avatar for urtrivedi
0
145
Member Avatar for queryEma

Good Afternoon, everyone. I am new to this forum so I honestly don't know what to expect. But I wanted to see if I could get some help here with a project that I am working on (No! it is NOT homework). Without giving all the specifies, which would take …

Member Avatar for pixelsoul
0
293
Member Avatar for nadiam

hey guys. js: $(".addGuest-btn").live("click", function(){ /*in table2*/ var addG = $(this).parent(); var insert = '<tr><td class="insertG"><input type="text" class="add-name" placeholder="Doubleclick on a name."></td></tr>'; $(addG).append(insert);/*append into table2*/ }); }); $(".guests td").dblclick(function(){ /*table1 td*/ alert("double clicked!"); var name = $(this).clone(); $(".add-name").each(function(){ if($(this).val() == "") { $(this).append(name); } }); addGuest function works and appends …

Member Avatar for nadiam
0
380
Member Avatar for Tcll

so what I'm trying to do is build a progress bar using basic page elements with CSS. http://tcll5850.proboards.com/thread/249/post-progress-bars-development what I want to do is set a solid color selected multiple colors in a gradient based off the percent completed. how can I do this?? I'm thinking to provide a hidden …

Member Avatar for Tcll
0
343
Member Avatar for techman41973

I want to create what is called an "Exit Popup" in Jquery with the following attributes 1. The popup is triggered when the visitor moves their mouse outside of the page. 2. The popup box enters from either the left or right, outside the page. 3. When the Exit Popup …

Member Avatar for Dani
0
2K
Member Avatar for Bile

Hi,Ihope all is well... I downloaded this fancy shockwave flashplayer [On this site](http://www.dynamicdrive.com/dynamicindex14/shockwave/index.htm) and I managed to do all the necessary setup for the My slide show page and it is fine and good. My pages are as follows I hape a php page for holding the shockwave flash player …

0
178
Member Avatar for davy_yg

index.php <script type="text/javascript"> $(document).ready(function() { $("#login").click(function() { $(".login_box").slideToggle('fast'); }); }); </script> <div class="login_box" onblur="myFunction()"><br> Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br> <input type="text" name="judul" size="20"><br><br> Password:<br> <input type="password" name="judul" size="20"><br> <a href="#">Forget Password</a><br><br> <button type="button" class="button">Sign-in</button> <button type="button" class="button" onClick="window.location.href = 'http:\index-1.html';">Create Account</button><br> </div> This program when someone click the button the login_box appears and if …

Member Avatar for davy_yg
0
298
Member Avatar for RikTelner
Member Avatar for dwlamb

This might be a duplicate but I can not find a solution for the small challenge I am facing. I want to assign the href and text in an `<a>` tag to variables and use them in a jquery script. Examples I have found pertain to diving into the DOM …

Member Avatar for diafol
0
261
Member Avatar for himanshu.1691

i tried to mimic the code of a tutorial for a live updatable table....dat is connected to the MYSQL server .... i copied it and edited it a bit...but its not working... i was not able to understand the code so dont knw where the problem is here is the …

Member Avatar for nikkitata
1
1K

The End.