15,121 Topics

Member Avatar for
Member Avatar for gunnerone

Hi, I have this javascript at the top of my php document on my website: [CODE] <script type="text/javascript"> document.getElementById('add').addEventListener('click', function(event) { event.preventDefault(); var select = document.getElementById('select').cloneNode(true); document.getElementById('form').appendChild(select); }, false); </script> [/CODE] In the body of the php document there is a form : [CODE] <form id="form"> <select id="select"> <option>one</option><option>two</option><option>three</option> </select> …

Member Avatar for pritaeas
0
108
Member Avatar for oblo10

Hi. I have a web site that contains jquery tabs and one tab consists of a sortable jquery. Although the sortable works induviduallay it doesnt work when it is put into the tabs. Is there a solution of that? My tab code is as follows. <script type="text/javascript" src="javascripts/jquery.js"></script> <script type="text/javascript" …

Member Avatar for Airshow
0
664
Member Avatar for mayreeh
Member Avatar for Pravinrasal

how can I access class name without using id I have following div tag: <div class="aa bb cc"> </div> their are three classes if i access class then which one will be access.

Member Avatar for niranga
0
70
Member Avatar for Pravinrasal

If I click on div first time it show alert and if i again click on div it will not show any alert box

Member Avatar for as.bhanuprakash
0
93
Member Avatar for andarivaadu1

Hi everyone, If there are multiple hyperlinks in a webpage, How do I recognize them using java script. Also How do I store the content of the hyperlink in a variable , so that the data stored in the variable will be used the query a database and populate results …

Member Avatar for Airshow
0
139
Member Avatar for gikonyo

I want 15% discount to be displayed automatically on the webpage once the user selects SE15 as the discount code(when the function is called) this is the code i have, its not working, what could be the problem <script type="text/javascript"> function getDiscount(){ var discount_code=document.orders.discount_code.options[document.orders.discount_code.selectedIndex].value; var discount=document.orders.discount.options[document.orders.discount.selectedIndex].value; var answer=document.orders.answer.value; if(discount_code=="SE15") discount=answer-(answer/100*15) …

Member Avatar for Airshow
0
83
Member Avatar for gorleone

Have a interesting problem. I make a little ajax mechanism to get info from php file and add a function for delete the data. phpfile.php: [CODE] <?php if(isset($_POST['bu'])){ $data = 'text<a onclick="something();" href="#">alert</a>'; echo $data; } ?> [/CODE] js file: [CODE] function getdatafromfile(){ var bu = 'bu'; $.ajax({ type: 'POST', …

Member Avatar for Airshow
0
372
Member Avatar for andarivaadu1

Hi everyone, I have a web application developed using php. I want to add a new feature in it. When the user searches for some book details, all the book details are displayed. Now when the user clicks on a book name in the search results, He will be redirected …

Member Avatar for diafol
0
173
Member Avatar for airmvp23

I've been round and round with this subject, but here goes again. Basically I need to Click a Form Button and submit that click into an iframe located on a separate page. The history behind this is that I am using Joomla for my main platform, but needed a more …

0
94
Member Avatar for web_develop

Hi all, I'm building a shopping website that within the products' page, there's an HTML select that allows the user to choose what product type he wants to view. beneath the select, there's a heading followed by a div or a table created at runtime showing the product name, image …

Member Avatar for niranga
0
116
Member Avatar for Loveleen Kaur

i am using jquery code and it is being called inside while loop. the output is correct for the first time but the output is already displayed for the second tym. plz help me solve this prblem. here is the code. [CODE] <html> <head> <script src="jquery-1.6.4.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready( …

Member Avatar for pzuurveen
0
212
Member Avatar for raheel_88

Hey all, I have the following HTML, adapted from a more complicated one I'm creating; [CODE] <HTML> <HEAD> <SCRIPT TYPE="TEXT/JAVASCRIPT"> function setup(ans) { lit = '' if (ans == 'anim') { lit = '<br><br>How many legs? ' lit = lit + '<SELECT NAME="q2" ONCHANGE="print(document.quest.q2.value)">' lit = lit + '<OPTION VALUE="">- …

Member Avatar for raheel_88
0
174
Member Avatar for Coyx

Hi all! I have a DIV (#content) and in that DIV I have about 4 or 5 <p>'s on the page. I'd like to give just one class of that <p> some jQuery to rotate 45 degrees. Could anyone point me in the right direction? I've searched everywhere I can …

Member Avatar for pritaeas
0
183
Member Avatar for jacob21

Hi, I am new to php/ajax.What i am trying: I have one drop down list,one test box & a button more.if i click more button same drop down & textbox & more button should open $ further goes on.. I need suggestion ?? what should i use??I have to insert …

Member Avatar for pzuurveen
0
116
Member Avatar for amulet_john

Hi Everyone... I need your help please... I want to store my extracted string using list() function... Here is my code below and it doesn't work.. Is there a list() function in Javascript? [code] var Mystring; var H; var M; var S; Mystring="01:00:00"; list(H,M,S)=Mystring.split(":"); document.write("Hours: "+H); document.write(" Minutes: "+M); document.write(" …

Member Avatar for niranga
0
89
Member Avatar for softDeveloper

Hi all, I have several sections in a text, and I would like to highlight each section as mouse rolls over.. I've tried to span the fragments of text but it doesn't work in my jsp...any suggestions?? Thanks

Member Avatar for softDeveloper
0
99
Member Avatar for hijabihtohai

could any body help me here on this issue I want to know if there is a way to call a javascript on vPlayer Event: VPLAYER_PLAY Like when I play/stop a video it do call a javascript on the page VideoPlayed() function VideoPlayed(){ alert('Video Play'); } Reference URL: [url]http://www.goto-multimedia.com/products/vPlayer/asdocs/html/gT_media_vPlayer_VPlayerEvent.html[/url]

0
58
Member Avatar for amulet_john

Hi Everyone... I need your help please... I want to store my extracted string using list() function... Here is my code below and it doesn't work.. Is there a list() function in Javascript? [code] var Mystring; var H; var M; var S; Mystring="01:00:00"; list(H,M,S)=Mystring.split(":"); document.write("Hours: "+H); document.write(" Minutes: "+M); document.write(" …

Member Avatar for amulet_john
-1
257
Member Avatar for jonow

I just got this script for a countdown on a website and I got it to work locally but when I upload it to the server i get the error "index.html:22 Uncaught TypeError: Object [object Object] has no method 'fancycountdown'". I have checked to make sure all other javascript files …

Member Avatar for jonow
0
254
Member Avatar for triumphost

I have a page that has a hidden button at the top. When a link is clicked, the button shows. I want to write javascript so that if the button is showing, add a breakline below it and if it is not showing, do nothing. My attempt & fail is …

Member Avatar for stbuchok
0
68
Member Avatar for Danny159

Hey, I am trying to get this working but failing! I am trying to make it so when you click the heading it opens the nab to do with that heading, and remember it... so next time you go onto the site it will remember what tabs you had open …

Member Avatar for Danny159
0
109
Member Avatar for ujjwal uniyal

Hi, My AsyncFileUpload is not working at all. When I amclicking on the Select file button nothing is happening. It isn't letting me select any file. However if i am setting UploaderStyle to Traditional then it is working fine. My .aspx code is - <div> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> <asp:AsyncFileUpload ID="AsyncFileUpload1" …

0
74
Member Avatar for saberExcalibur7

Uhm. Well i am really not well equipped with jquery knowledge therefore giving me the complete code would be the solution. =] The function will be 1.get the 70% width of the browser's screen. 2.convert that width into its corresponding px value 3.set the max width of the #mainContainer using …

Member Avatar for saberExcalibur7
0
231
Member Avatar for omaiaa0p

Hello everyone.. I'm developing a calorie counter with a <select> tag as my list of foods. It currently calculates the number of servings, calories per serving as well as the daily caloric intake. My problem is I implemented a "delete row" function to delete a food in case a user …

Member Avatar for MartinRinehart
0
238
Member Avatar for 54uydf

I have a form with 2 submit buttons, inside the form I have a table, each row in a table has a checkbox each row is showing a member-status, each member can have more than 1 status, so the table looks like this- x=checkbox x, david, beginner x, david, pro …

0
71
Member Avatar for praveendasika

Hi I have recently been facing a difficut issue.I think some one is attacking my website. I have attached the jpg image of the failure and its happening on a daily basis .I upload the site and for some hrs its just cool but suddenly i get this error. I …

Member Avatar for albertindian200
0
198
Member Avatar for triumphost

I have an iframe that loads a page inside it.. when a link is clicked on the page in the iframe, resize the body of the parent aka the document that has the iframe's body.. Example: [CODE]Body <------------------------ Iframe | Page | Link... Upon Click, resize --[/CODE] How do I …

Member Avatar for triumphost
0
143
Member Avatar for klemme

Hi all! I am trying to include two functions in an onchange when the user selects a new value from a select list: It is a quite big form form - There are one select list, when changed - TWO other fields in the form needs to change accordingly: I …

Member Avatar for klemme
0
2K
Member Avatar for Biglis35

Hello, a few years ago (about 7 or so) I developed a concept for a website but I had (& still do not have) little to no knowledge on web design... specifically source code. Well I attempted to have the site built by an individual who claimed to have extensive …

Member Avatar for MartinRinehart
0
249

The End.