15,699 Topics

Member Avatar for
Member Avatar for ndeniche

Hello peeps. I'm trying to update a sql table from mi php Ajax web page, which stores dynamically a table into the page by [icode]table.appendChild(row)[/icode], so that the user can verify the information he is inserting before the actual database update. How do I do this with ajax?

Member Avatar for ndeniche
0
140
Member Avatar for kardklub

i have this piece of code i would like to validate using javascript. I have the validation code already , all i would like to know is how do you send a changeable variable to javascript i.e [CODE] while($row1 = mysql_fetch_array($result)){ $sel = ($row1['productid'] == $row['productid']) ? "selected=\"selected\"" : ""; …

Member Avatar for kardklub
0
288
Member Avatar for maria_megha

please give me the code for checking the company name entered in textbox using javascript .Only sentence case to be allowed.Only abbreviations (without a full name) should not be allowed.(eg DPS) Abbreviations if any should be allowed only at the end of the name within ().eg Delhi Public School(DPS)

Member Avatar for Taywin
0
103
Member Avatar for still_learning

Hi there, At my company we are working on building a website, however javascript is disabled on the server and cannot be enabled. Onclick, onmouseover, etc.....these events do not work either. Is there any alternative to making my page dynamic? Mainly I'm wanting simple things like being able to fire …

Member Avatar for z-Steve
0
119
Member Avatar for McLaren

Hi, [CODE] $('object').live('mousedown',function(){ url = $('.m_banner_show object param[name="movie"]').attr('value'); alert(url); //filename = url.substring(url.lastIndexOf('/')+1); //pridedam paspaudima $.post( getBaseURL() + "index.php?option=com_ReklamuRodymas&controller=welcome&task=addClick&format=raw",{filename: filename}); }) [/CODE] The html code: [CODE=html] <OBJECT id=bnr_banner2_0 codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=468 height=60 VIEWASTEXT> <PARAM NAME="_cx" VALUE="12382"> <PARAM NAME="_cy" VALUE="1587"> <PARAM NAME="FlashVars" VALUE=""> <PARAM NAME="Movie" VALUE="uploads/banners/file4.swf"> <PARAM NAME="Src" VALUE="uploads/banners/file4.swf"> <PARAM NAME="WMode" VALUE="Transparent"> …

Member Avatar for tinymark
0
110
Member Avatar for serdas

below code work this with no problem <form name="statusUpdate" action="" method=""> <textarea name="status" id="status" rows="4" cols="50"></textarea> <input type="button" onclick="updateStatusViaJavascriptAPICalling(); return false;" value="Update Status via Facebook Javascript Library" /> </form> [CODE] } function updateStatusViaJavascriptAPICalling(){ var status = document.getElementById('status').value; FB.api('/me/feed', 'post', { message: status }, function(response) { if (!response || response.error) { …

Member Avatar for serdas
0
135
Member Avatar for AMADH

Hello, I have created a javascript script to select a color for the css theme. I have it working great for picking, but the problem is when I refesh it goes back to the default. I was wondering if somone might know why my cookies are not saving? from html …

Member Avatar for AMADH
0
256
Member Avatar for serdas

below is the code i found from some nice tutorial it works great but the function post to wall promt user to either publish or skip, on some other php file this trigers it i think <a href="#" onclick="publishStream(); return false;">Click Here To Show A DEMO Stream Publish Box</a> and …

0
67
Member Avatar for mark4013

Hi Guys, I'm new to programming and webdesign, but my girlfriend asked me if I'd build her a site for her massage therapy with an online booking calendar as she can't take calls for bookings during work so I thought I'd have a go. I've pretty much finished the booking …

Member Avatar for tinymark
0
96
Member Avatar for GHLifestyle

I'm retreiving data from a texfile with AJAX through: document.getElementById("my div").innerHTML=xmlhttp.responseText; but I want to make a linebreak in the text before each capital letter starts. How do I go about doing that? Appreciate the help.

Member Avatar for Taywin
0
260
Member Avatar for tcollins412

i am making a register page on my website. i have a password and a re-enter password text fields. how would i validate those two by making sure they are the same in ajax? and how would i make that happen on the re-enters onblur or onchange? thank you

Member Avatar for kardklub
0
141
Member Avatar for Munnazz

Hi friends i was in a need of using reorderlist from ajax family. I tried a lot and was unable to do anything with please help me. Munnazz

Member Avatar for Munnazz
0
91
Member Avatar for filch

On this page: [url]http://streetkids.zuka.net/sandbox/map-new.05.html[/url], when you click on, for instance, Ethiopia, you get a map and then when you click on the "flag" you get a popup with some tabbed info. At the bottom of this popup is a close link. It is there the first time you click on …

Member Avatar for filch
0
152
Member Avatar for kardklub

if i have [CODE] <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>[/CODE] [CODE] <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js" type="text/javascript"></script>[/CODE] both of these in my header my jquery menu does not work. i have searched google and it keeps telling me about this [CODE] <script> jQuery.noConflict(); // Use jQuery via jQuery(...) jQuery(document).ready(function(){ jQuery("div").hide(); }); // Use Prototype with $(...), …

Member Avatar for kardklub
0
227
Member Avatar for SchemeStarter

On a form, I want to jump to the next tabindex when pressing the 'enter' key. The script that should do the thing, should look like this (the tabindex is generated dynamically and the code is simplified): [CODE] <form id='MyForm'> <?php $tabindex = 1; ?> <input class='pts' type='text' id='<?php echo …

Member Avatar for Taywin
0
1K
Member Avatar for gazzy1

THE SCRIPT bELOW PASSED THE SECOND TO 0 (STARTING FROM 1500 SECOND) I NEED 1500 SECONDS THAT SHOW AS 00:25:59, 00:25:58................00:25:01...00:24:00...00:24:59........................UNTILL 00:00:00. PLZ HELP ME <HTML> <BODY> <script language="javascript" type="text/javascript"> var myTime = "1500"; function countDown() { document.form.seconds.value = "00:25:" + (myTime < 10 ? "0" + myTime : myTime); …

Member Avatar for tinymark
0
135
Member Avatar for gazzy1

i want to create a timer for my php page i created the page that only 20 second i want that the time should be as 00:00:20 (hh:mm:ss) plz help my scipt are.......................................................................................................... [code]<tr> <!-- countdown script --> <td style="text-align:left;font-size:10pt;font-family:Verdana, Arial;">Time Left: <input type="text" name="seconds" size="3"> <script language="javascript" type="text/javascript"> var …

Member Avatar for Luckychap
0
2K
Member Avatar for igor221189

Hello, Would it be possible to add text to textboxes with the click of button? The page contains three dropdowns (category, sub category, items). First, user selects a category in the dropdown. In the second dropdown, all items that are held in that category are displayed. In the third dropdown, …

Member Avatar for igor221189
0
112
Member Avatar for CommDave

I've used this method to highlight the location page that the user is on. Below is a working example of how this functions. This works in div tags or in a tables and cross browsers. Below I've created a main Navigation and two sub navigation. Terminal Intensity, Surreal 1, & …

Member Avatar for Taywin
0
525
Member Avatar for kudenv

Hy all. I have some problem then tried employ action onMouseover and onMouseOut. I have further drop unordered menu [CODE] div#content{position: relative; padding:0 10px; border: solid 1px #6b6b6b; height: 100px;} ul li {list-style: none;} ul.menu {padding: 0; margin:0; display: block; height: 68px;} ul.menu > li {float: left; background: url("li.jpg") no-repeat …

Member Avatar for kudenv
0
197
Member Avatar for atfOnly

Dear All, I'm going to put some submenus into tabs and put its contents there. i want to fetch the name of the tab (menu) from the database. for this case, i must use looping 'while'. for example [CODE]<body> <?php $query=mysql_query("SELECT * FROM modul WHERE ket='submenu_mahasiswa'"); $result=mysql_fetch_array($query); ?> <div id="tabs"> …

Member Avatar for smantscheff
0
98
Member Avatar for kgizo

hi i'm new to ajax i've already got a drop down menu populated with values from my database and the code is underneath here, when i click on any province in the drop down menu the cities have to appear on the next page which are also from my database.The …

Member Avatar for kgizo
0
166
Member Avatar for new_developer

Hi there, I am working on form validation, i want to validate "Name" input field value . I want that in "Name" input field no number can be input. Is there any function which search number/s from string ?? i.e if user inputs any number in that field with string …

Member Avatar for Taywin
0
139
Member Avatar for Transcendent
Member Avatar for mark4013
0
266
Member Avatar for iamchamith

Dear Friends, i use php for develop a web site..I generate a table with images at back end of php..after that I innerHTML that table to html div tags...In image click event i must want to fire jquary function...In testing time(hard code that table in html page) the function is …

Member Avatar for makman99
0
94
Member Avatar for lifeworks

HI I have this js function for pulling out a couple of links which I want to add onclick handlers to... but IE can't find the rel attribute the way Im doing it, Im assuming it can another way, but I dont know how?! this works in Chrome, but not …

Member Avatar for Airshow
0
229
Member Avatar for yashted

In the following code, the click event is added explicitly to the body, so that even if click outside the button say on the body the div with ID tip1 should close with a fade effect. The problem here is that the the div closes even if we click on …

Member Avatar for Luckychap
0
139
Member Avatar for vijaygupta

Hello , I want to add muliple radio button on click of a radio button and this to happen in sub radio buttons also any kin of help appreciated thanks

Member Avatar for pzuurveen
0
69
Member Avatar for newbieJS

I am working on an optional exercise for a course, being optional no one has posted any helpful feedback on the course forum. I have finished the code as instructed, to the best of my ability and cannot located the problem. The script is supposed to activate a red ball …

Member Avatar for Taywin
0
280
Member Avatar for erioch

Hi all, I am trying to show a field based on another field's value and hide it it initially... like when you want students to select their schools if they have gone for education ortherwise the school field remains inactive... I have the folowing scipt but it is not being …

Member Avatar for erioch
0
452
Member Avatar for imon214

how to populate select box depending upon the selection of the radio button on rails anyone knows what will be the possible ajax and rails script for populating dropdown list values based on selected radio button on rails 3 example there are two type of platform choices(windows, unix) of radio …

Member Avatar for Taywin
0
1K
Member Avatar for McLaren

Hi, I want to get such data using AJAX from PHP. With php I generate data this way: [CODE=php] $return['credits'] = $credits; $return['banners'] = $this->generate_banners($user->id); echo json_encode($return); [/CODE] generate_banners: [CODE=php] function generate_banners($user_id) { $html = ''; $query = $this->db->where('user_id',$user_id)->select('filename')->get('jos_reklama_banners'); if($query->num_rows() > 0) { foreach($query->row() as $filename) { $html .= '<div …

Member Avatar for McLaren
0
763
Member Avatar for serdas

hi, i don't know coding and trying to find if is it possible to have a text area pre filled and has an image and a link and some text. is it possibele? below is what i am trying to do please help. thank you this is what i would …

Member Avatar for makman99
0
141
Member Avatar for maverick420

I am trying to validate the fields in the form and trying to POST the input after validating form the server however I am able to validate the fields but not able to POST the data form the field, please help if anyone could. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

Member Avatar for Luckychap
0
173
Member Avatar for bkimbriel

Hi, I'm currently working on a website for my dad that has dynamic fields (hit a button and an html template gets displayed). You can see the template in use here... [url]http://hbndev.com/ipad/index.php?option=com_content&view=article&id=5&Itemid=6[/url] As you can see it works, perfectly. EXCEPT for when you add a field it drops to below …

Member Avatar for Airshow
0
212
Member Avatar for ndowd

I am trying integrate an upload system from YouSendIt.com in to my companies forms. The code they give for integration is basically an iframe with a coded URL set for the source. Their server sends a postback using HTTP Post method but I am not sure how to access the …

Member Avatar for ndowd
0
321
Member Avatar for serdas

hi, i am sorry i dont understand coding but trying to find this out i have this <a href="#" onclick="publishStream(); return false;">Click Here Publish Box</a> after click popup comes asks to publish or skip i would like to change it to this <body onLoad="publishStream(); return false;;"> which eliminates the first …

0
49
Member Avatar for cleggy1987

hi i am having trouble with resizing can't get id using $(this).attr("id") [CODE] <script type="text/javascript"> $(document).ready(function() { $('.text_wrapper').resizable({ onResize: function(e) { var id = $(this).attr("id"); var parent = $(this).parent(); $('.wrapper').load('modules/web/process-sortable-size.php?height='+ e.data.resizeData.target.css('height') +'&width='+ e.data.resizeData.target.css('width') +'&id='+ id); }, onStop: function(e) { } }); }); </script>[/CODE]

Member Avatar for cleggy1987
0
125
Member Avatar for ShadyTyrant

Hello I have a web site called shadygames. I want to make sure that all the information is filled out in a contact form I have set up. I am using ajax to update the page if more information is required by the user. I have the email validation working …

Member Avatar for McLaren
0
171
Member Avatar for McLaren

Hi, where is the best practice to put js, image, css files when you make component? I put them in the same directory as component is. Is it good practice? Or should they be in media directory?

Member Avatar for McLaren
0
157
Member Avatar for anirban1087

Hi, I am working on a form which is as follows - +---------------+----------------+--------------+-----------------+---------------+ |Item_Code |Item_Name |Quantity |Rate |Amount | |[ COMBO BOX ] |[ COMBO BOX ] |[ USER INPUT ]|[ Auto Fill after| [ CALCULATED ]| |Generate Field2|Generate Field 1| |selecting f1/f2 | | +---------------+----------------+--------------+-----------------+---------------+ The user can either …

Member Avatar for Pnorq
0
127
Member Avatar for petrakid

Hi. I have a div which contains dynamic content populated with AJAX (user has two select boxes to filter query results) However when filtered results extend past the initial height of the div in question, the div remains the same size and the results overflow out of my content area. …

Member Avatar for Pnorq
0
1K
Member Avatar for ETbo

Hello all, I would like your help on chunking a multidimensional array, which appears to be a complex job. The array has the following structure: name["rows"]["key1"] = some String; name["rows"]["key2"] = some String; name["rows"]["key3"] = some String; name["rows"]["key4"] = some String; name["rows"]["key5"] = some String; ... name["rows"]["keyN"] = some String; …

Member Avatar for Taywin
0
299
Member Avatar for mangopearapples

Hey guys, I'm having a little bit of trouble here. I have a variable called Latest1 and it's value is some HTML and PHP code. I have a function that does document.getElementById().innerHTML = Latest1; So when that happens, it runs the HTML code but for some reason it doesn't run …

Member Avatar for mangopearapples
0
222
Member Avatar for omaiaa0p

Hello Everyone, I used to have a post function that works but it suddenly says: aborted when I run firebug on it and I dont know how I can fix it. I am using servlets in a netbeans IDE and would like to know how to fix it. Once it …

Member Avatar for omaiaa0p
0
141
Member Avatar for whiteyoh

Hi All, I want to be able to have a form element greyed out unless other elements are satisfied. Ive got the following code so far, but i cant seem to get it to recognise that i have made the selection. Also im wondering how to make it only ungrey …

0
75
Member Avatar for Deva.VG

Hi, I am new to testcomplete. I'ld liket to do automation testing using Jscripts in Testcomplete but not all JScripts properties and functions supports here. So how can I learn this, is there any tutorial to learn complete Properties and Functions with some examples to workout Jscripts in Testcomplete.. Can …

Member Avatar for jsm77
0
69
Member Avatar for rajeesh_rsn

Hi friends, I want to change content of one of div using jquery and animate the div height and width according to new height and width. I want to change about 12 contents. Everything working fine with my code except height issue. My question is how to calculate newly loaded …

0
80
Member Avatar for vishalkhialani

Hi Guys, I am trying to implement the masonry plugin on my blog [url]www.Iamvishal.com[/url] but I can't seem to get it working. Below is my code. Any clues as to what I am doing wrong ? [CODE] $(window).load(function () { $('#content').masonry({columnWidth: 185}); }); [/CODE] Cheers, vishal

Member Avatar for vishalkhialani
0
94
Member Avatar for tekboi

I'm trying switch the twitter javascript widgets out depending on the time. So in the day, the twitter widget will be colored differently than at night. I used the code that twitter gave me and came up with this code. But I get a syntax error in DW on the …

Member Avatar for Taywin
0
195

The End.