17,114 Topics

Member Avatar for
Member Avatar for Angeline5

Is there a foreach code in JQuery as in PHP? I have a code in php,like [code] <?php foreach ($viewfields as $viewfield): ?> if("<?php echo $viewfield['Attribute']['required'];?>"=='true'){ $("<span class='req'><em> * </em></span>").appendTo("#fb_contentarea_col1down21 #label<?php echo $viewfield['Attribute']['sequence_no']?>"); } if(<?=$viewfield['Attribute']['type'];?>=='text'||<?=$viewfield['Attribute']['type'];?>=='date'||<?=$viewfield['Attribute']['type'];?>=='number'){ $("<input id=input<?=$viewfield['Attribute']['sequence_no'];?> type= 'text' style= 'width:<?=$viewfield['Attribute']['size'];?>px' data-attr=<?=$viewfield['Attribute']['type'];?> ></input><br>").appendTo("#fb_contentarea_col1down21 #<?=$viewfield['Attribute']['sequence_no'];?>"); } else if(<?=$viewfield['Attribute']['type'];?>=='textarea'){ $("<textarea style= 'width:<?=$viewfield['Attribute']['size'];?>px' …

0
42
Member Avatar for feoperro

Hi, I'm trying to create a page that contains a table that is hidden initially (on page startup). Later, when a link is clicked, the table should show permanently. The problem I am having, however, is that when I click on the link, the table shows for a second and …

Member Avatar for essential
0
99
Member Avatar for shaggysc96

I do not much understand what is going on. The iframe is transparent in all browsers but IE. I need to change the background color in IE, of my iframe and cannot figure it out. My code is below. It is pulling from an external file exfile.js. Nothing i have …

Member Avatar for essential
0
2K
Member Avatar for tanha

Hi, I have a Book Registration Form, in which one book may have more than one authors and can belong to more than one category, therefore on the registration form, I have a textbox for the category, in order the category is not in the dropdown, I want to add …

Member Avatar for tanha
0
117
Member Avatar for dlaniger

Hello- I just joined and have read the thread:[url]http://www.daniweb.com/forums/thread48188.html[/url]. I was advised to start a new thread as that one is to old now. Anyway, I have the same problem and am trying to use the "hidden" input tag to access the parameters I need in the jsp. My code …

Member Avatar for kvprajapati
0
922
Member Avatar for veledrom

Hi, I want to create quick preview window for images listed in my website. For example: if you go to this site [url]http://www.templatemonster.com[/url] there are little images on the right end side. When mouse over on any image, a bit preview window opens. I want something like this. How can …

Member Avatar for essential
0
135
Member Avatar for flashyflashy

I'm in a situation where I have to pass javascript variable to php without redirect (no $_get[]). The code I'm working around is like [ICODE] <script> var screen_width=screen.width </script> <?php $screen_width=[B]javascript_variable[/B] ?> [/ICODE] I want to pass value of this variable to a new php variable.Please suggest me a way …

Member Avatar for demodav
0
8K
Member Avatar for Mortez Maya

Hi, I'm amateur in Ajax programming.:icon_smile: I wrote a sample project and did this : First I put three controls to the form (script manager, update panel and update progress) then I put two textboxes and a button to develop kind of login page. When button pushed, first I check …

Member Avatar for Mortez Maya
0
65
Member Avatar for bakshi123

Hi , I am developing a web page . For this i am using Javascript embedded in html. In the application ,the user can input data via interfaces in the page which is chosen and read from a master xml file , the chosen data then needs to be stored …

Member Avatar for Airshow
0
545
Member Avatar for bbqkaren

I have what I hope is a simple question. I found a js that does exactly what I want, except that I want the table 'closed' when the page is loaded, and opened when the +/- is clicked. I'd like this in Java. (assuming that non-java users would see the …

Member Avatar for bbqkaren
0
373
Member Avatar for warmath

Hi people!!! Why this little block do not work in Firefox? [code=html]<html> <body> <input type="button" value="teste" onclick="javascript:alert();" /> </body> </html>[/code] Thanks for any help. Best regards.

Member Avatar for ShawnCplus
0
50
Member Avatar for prax072

I am trying to dynamically populate a select box with Jquery and JSOn in my VB.Net ASP.Net application. The event is triggered in the selectedindexchanged of another ASP Dropdownlist in the page. I am getting my selectlist populated (thanks to [url]http://www.codedigest.com/Articles/jQuery/224_Building_Cascading_DropDownList_in_ASPNet_Using_jQuery_and_JSON.aspx)[/url]. i am passing two values to the select box. …

Member Avatar for prax072
0
175
Member Avatar for dragovian

hey, i am working on a webdesign for my boss and i was doing some scripting cause he wanted to be able to "zoom/enlarge" something using a simple zoombutton. the code i wrote works perfectly in firefox en safari, but in ie7 and ie8 it just doesn't :( [CODE=prototype]var checker=true; …

Member Avatar for Airshow
0
127
Member Avatar for Lolalola

What's wrong? Why don't work stop funkction? I think that the poor turn to the function, but otherwise I do not know ... [code=html]<html> <head> <script type="text/javascript" src="jquery.js"></script> <script> $(document).ready(function() { //Paleidimo funkcija var time_ref = setTimeout(function() { var time_ref2 = setInterval(function() { $('#time_now').load('time.php?id='+ Math.random()); }, 1000); }, 3000); //Laiko …

Member Avatar for essential
0
92
Member Avatar for Lolalola

Hi, with Mozila everything work, but with IE didn't work. Page didn't reload. What's wrong? [code] <html> <head> <script type="text/javascript"> setInterval("sendRequest()", 1000*2); function createRequestObject() { var req; if(window.XMLHttpRequest){ // IE 7, Firefox, Safari, Opera... req = new XMLHttpRequest(); } else if(window.ActiveXObject) { // Internet Explorer 6, 5 req = new …

Member Avatar for hengzhe
0
727
Member Avatar for jt3204

Ok, I will be honest - my first javascript challenge is a little hard, but has been handed down to me from my uncle. He doesnt know how to do it, and thinks a fresh mind might be able to make sence of it. Fresh meaning fairly new to js... …

Member Avatar for jt3204
0
138
Member Avatar for gilbertsavier

Hello sir, I have a problem with Javascript dropdown menus. There is a flash animation just below my javascript menu. When i hover on the javascript menu the dorpdown goes behind the flash animation. Is there any solution to rectify this problem? Thanks

0
53
Member Avatar for pradeepktg

Hi All, I want to use jquery overlay in one of my dynamic page. Well, let me explain the case in detail; Actually i have implemented in my site, but it works for only one id. Ok, here is the case (1)I have a news page, which is dynamically loaded(used …

Member Avatar for pradeepktg
0
85
Member Avatar for Studio

Hi there I have been searching round the internet for the last few days trying to find a tutorial that would help me make a contact form that then uses server side and client side code (PHP/Ajax) to validate the fields so that it is degradable if the user has …

Member Avatar for vinothkumar023
0
147
Member Avatar for php_noob

I saw a JQUERY that has FADE IN and OUT but what if I will need to fade in and out 3 images? is there available plugin for that? Thanks for the reply!

0
68
Member Avatar for neclark2

I'm having difficulty loading images via Ajax on a site that I've been working on. I'm performing the ajax by using the Request.HTML object of the MooTools framework. Basically, I'm just passing some parameters to a php script which outputs some image tags and then I insert that HTML into …

Member Avatar for essential
0
82
Member Avatar for dwrakh

hi friends, am a student,pursuing my graduation in computer application... i am in my efforts to perform a coding for a chess game between two persons who play with each other from different computer systems through internet. i want to know about how i can code in such a manner …

Member Avatar for dwrakh
0
143
Member Avatar for muktidaniweb

Hello, I have a menu.jsp included in all the jsps. When I click a link in the menu it calls the respective page and the menu.jsp is also refreshed. I want to write a java script to highlight the menu link that was clicked. But since the menu jsp is …

Member Avatar for shahbaz5144842
0
144
Member Avatar for MarrkoR

Hi, I have problam whit jquery. Whit IE work everything OK(work fine), but whit Mozila or Opera i have problam: Hirs function "sec" work, fine, but secont in file index2.php "sec3" don't. index.php [CODE] <html> <head> <script type="text/javascript" src="jquery.js"></script> <script> $(document).ready(function(){ var sec = setTimeout(function() { $('#sec').load('index2.php?id='+ Math.random()); }, 1000); …

Member Avatar for hengzhe
0
99
Member Avatar for apollokid

Hey All im kinda new with javascript and I have a lil script made but need to add to it but kind of lost on what to do. Its a gallery that works fine but i have a part where there are two images a before and after. one image …

Member Avatar for essential
0
142
Member Avatar for SKANK!!!!!

i went to tizags ajax mysql tutorial(how to update mysql with ajax) i dont understand it seems like that example is wayyyyy too long i cant comprehend it it makes no sense. does anyone know of a good way to explain to me how to update / insert a value …

Member Avatar for essential
0
149
Member Avatar for Zurompeta

Hi all, Having an issue with "selectedIndex" (for a select field). Basically I'm creating XML code via a server-side PHP file and retrieving this code through AJAX. Once I retrieve the data, I'm placing it in their appropriate fields. This is the XML output: [CODE='XML']<response> <data> <row> <item>ProductEight</item> </row> <row> …

Member Avatar for Zurompeta
0
101
Member Avatar for jiwatramani

hello people, here is a piece of AJAX that i have used in my JS file. It's working fine with IE but somehow the page does not load in Firefox. [CODE]function secondRead(){ if(xmlHttp.readyState == 4){ if (xmlHttp.status == 200) { try{ var status = xmlHttp.responseText; alert(status); status = status.split(":")[0]; status …

Member Avatar for ivannz
0
122
Member Avatar for whatshakin

Hey I have a div on the left of the screen to invite your friends. I am having trouble find a simple script where when I click on the div, the link works but then the div moves offscreen. [url]http://alturl.com/4iai[/url] Here's the div: [CODE]<div class="inviteTab"> <a href="importer/index.php" rel="gb_page_center[750, 500]" title="Your …

Member Avatar for Luckychap
0
63
Member Avatar for blessanm

I have a problem. I have a page with a default avatar image and a input box below it. Its a form. The thing i want to do is that, i want the default avatar image replaced after a user selects a image from the input tag. my code is …

Member Avatar for ivannz
0
3K
Member Avatar for Shaznew

Hi, I need to capture the delete key event onclick on DIV. I wrote the below code using jQuery. [code]$("#DIVID").keydown(function(event){ // delete key works with IE if(event.keyCode == 46) { // delete code goes here }[/code] This is working fine in IE but not on Mozilla, Safari. Please do the …

Member Avatar for essential
0
134
Member Avatar for Zurompeta

Hi all, Having a strange issue here. To help explain my situation, I have some images I'd like to include. This first image is of one of two user input forms. Notice in the top left of the picture, the second tab is selected. [IMG]http://www.abexal.org/image_1.jpg[/IMG] The arrow is pointing to …

Member Avatar for Airshow
0
205
Member Avatar for Auch

This is kinda driving me crazy, maybe its just one of those days. I have this If loop that I feel like its extremely redundant but I cant find a way to make it shorter [CODE]function validateYear (valfield, infofield, required) { var stat = commonCheck (valfield, infofield, required); if (stat …

Member Avatar for Airshow
0
100
Member Avatar for xyciana

Can anyone help me and provide a way to list files in a directory using javascript. This is on the server (NOT CLIENT). For our purposes we have built a simple search facility (that all we need) and the code takes data from an array. All we want to do …

Member Avatar for ShawnCplus
0
81
Member Avatar for ivannz

Hello, everyone! I'm fairly new to this forum, but I spent some time mining it for information. Unfortunaltely, as far as I have searched it I was unable to find an answer to my question. Googling hasn't satisfactorily answered my question also. Here's the goal: [LIST] [*]- user fills in …

Member Avatar for almostbob
0
2K
Member Avatar for nostalgia149

to start with .. lemme ask u .. whether i can use <?php ?> inside <script ></script> anywhere and also if i can use html tags there?????????????????????????

Member Avatar for diafol
0
62
Member Avatar for OmniX

I would like to know how to display XML in a browser. Also if possible to maniuplate the XML elements. Havent touched based with XML in awhile and still abit rusty. Thanks, Regards X PS: Below is the listed code and below is the wished output. Code : [code] <?xml …

Member Avatar for OmniX
0
2K
Member Avatar for tdeck

I'm trapping the onKeyPress event of a textarea, and I'm wondering if there's a way to prevent the key from also being typed into the textarea if it's a certain key. I have tried stripping off the last character from the value property, but it seems that the character is …

Member Avatar for tdeck
0
91
Member Avatar for solahere

I wanted to do some popon windows when someone hovers over something on my page... [ICODE] new_window = open("page.html", "displayWindow", "toolbar=no,width=600,height=300,directories=no,status=no,scrollbars=no,resize=no,menubar=no"); [/ICODE] I can do that by opening a popup using the abovecode but it opens in a separate page... I want it to hover on top of the same …

0
67
Member Avatar for RobotFX

I'm looking for a popunder script that will work for both IE8 and FF3 (as they dominate now). Of course, any other browser is welcome :) Note: I've also tested the flash but I've excluded it from the start, since the flash player is enabled by default to block them. …

Member Avatar for clivexxx
0
153
Member Avatar for morecrab

Hi all, I had a problem with this html. Its name is index.asp. [CODE] <form action="index.asp" method="post"> <input type="submit" name="previous" value="prev"> <input type="submit" name="next" value="next"> </form> [/CODE] The problems is, [INDENT]I don't know whether i push the prev button or the next button.[/INDENT] How i will know that ? --THanKs …

Member Avatar for alexhernandez
0
78
Member Avatar for zuve_fox
Member Avatar for DangerDev
0
51
Member Avatar for aparnesh

I have created a timer function using setTimeout. The function works perfectly in IE and Opera but doesn't work in FireFox or Netscape 6. I checked out my Javascript book where it says setTimeout is compatible with all browsers. So where am I going wrong ? [CODE]function showPics() { if …

Member Avatar for Nine of Hearts
0
518
Member Avatar for ablitz

Hi Everyone! I'm currently working on MySQL/PHP/JavaScript project using AJAX. I came across some weird abnormality and wanted to share with you and hopefully find a solution to this problem. for some reason alert(textarea2); shows nothing but if I place another alert(textarea2); right after the first one it works, second …

Member Avatar for ablitz
0
296
Member Avatar for Matsui

i know that there is a mailto: script to use but it is unsecure and all that, so what would be the best way to go about sending form information to an email address in javascript?

Member Avatar for essential
0
160
Member Avatar for phant0m67

hi im trying to parce a XML that is generated by a php page, the problem is that when i try to get the elements on that XML, the browser says that my variables (dado) are undefined.... any idea how to solve this? [code] function leValorXML(xmldoc, tag){ var dado = …

Member Avatar for essential
0
124
Member Avatar for laghaterohan

Hello, I have written a javascript function for email validation . On the click event of the validate button am calling the function however, the function is not called and returns nothing....so please help me out....plz help me out and do let me know where am going wrong...! here is …

Member Avatar for kvprajapati
0
188
Member Avatar for DealthRune
Member Avatar for DealthRune
0
269
Member Avatar for samarudge

Hi, I have used AJAX lots before and I wondered if it was possible to set variables from an AJAX file E.G. an ajax file could set var set1 = 10; var set2 = 55; with both variables coming from an external file called by AJAX Could you tell me …

Member Avatar for Airshow
0
130
Member Avatar for napsternapster

Hi ppl, I have a select dropdown which has two events an onchange and onkeypress. My problem now is when I use the keyboard arrows to select an item from the list in a select drop down the onchange is selected(invoked) before I even reach the second item in the …

Member Avatar for essential
0
125

The End.