14,053 Topics

Member Avatar for
Member Avatar for Aksel

Hi guys, I'm still pretty new to javascripting so be gentle I hope you guys can help me out a little on this one. I'm creating a page where I load some of my contents through ajax calls. In the returning content I'm trying to access some jquery features (lightbox …

Member Avatar for Airshow
0
189
Member Avatar for metalix

Hey guys!! been a while since I posted here, but thought I'd post this question here cause it is driving me insane!! Basically, if the condition returns true, then that part works. but if it's false, neither part works. If I put the content from the else after the <script> …

Member Avatar for Airshow
0
165
Member Avatar for scarlettmoon

Working with javascript / jquery - Need to have a more precise regex for the following pattern: Should I have the ignore case included? If so where? X25b777s44K The regex I have: ^([A-Z]?)(\d{2})([a-z]?)(\d{3})([a-z]?)(\d{2})([A-Z]?)$ Thank you for your help.

Member Avatar for scarlettmoon
0
159
Member Avatar for david081

I am very new to using script . i was hoping someone could help me . I want to write a client side web page that will start excel on client computer and upon a button click javascript will open the excel file from c drive and display output . …

Member Avatar for twiss
0
183
Member Avatar for Violet_82

HI there, I wonder if anybody can give me a hand with this. I am writing a script which will allow me to swap some images (using also jquery to give the fading effect) but things are not quite working the way they should. I am really new to javascript …

Member Avatar for Airshow
0
153
Member Avatar for public-image

Hi there! I am wanting to use javascript to set a cookie which will expire on session/cookie expire and what would this cookie do? I want it to determine whether or not to show a div using a variable to set display block or none. The div contains text "Click …

Member Avatar for twiss
0
107
Member Avatar for Soben

Hello guys! I have a form and when the user sumbit it a javascript function will be called using onsubmit event. I need to call the function because I need some AJAX code to be executed. And after it's finished, the page needs to be redirected to another page. But …

Member Avatar for Airshow
0
94
Member Avatar for jeffcogswell

I've been using jQuery for a few years now, and the more I use it, the more I like and appreciate it. It seems like I'm always finding new ways to use it, and usually those new techniques result in me writing less code and ultimately being more productive. On …

Member Avatar for twiss
2
573
Member Avatar for tycoonz

Hi I really like the drop down that I found on [url]http://www.scriptiny.com/2008/04/sli...dropdown-menu/[/url] I have 4 Menus and when I add this this flows over the logo. The size of each menu is in fact too big. When I tried to alter this the size of sub-menus stay the same and …

Member Avatar for tycoonz
0
147
Member Avatar for rayidi

Dear Friendzz, Problem to getting dynamic values in Javascript.. Please Helpme [CODE]// Java Script <script language="javascript"> function toggle(int) { var ele = document.getElementById(int); if(ele.style.display == "block") { ele.style.display = "block"; } else { ele.style.display = "block"; text.innerHTML = "hide"; } } </script> // HTML <div class="reply"> <a id="{$msg['id']}" href="javascript:toggle(this);">Reply</a> </div>[/CODE] …

Member Avatar for ko ko
0
2K
Member Avatar for Soben

at this part: [CODE]if (xmlhttp.readyState==4 && xmlhttp.status==200){...[/CODE] My program's "xmlhttp.readyState" is 4 but its xmlhttp.status is always 0, why? is it even necessary to add "xmlhttp.status==200" condition? because I've seen programs without it :/ thanks

Member Avatar for twiss
0
71
Member Avatar for Braden0007

hello can somone please tell me why i cannot submit this twice i have a php form doing the validation and mailing but if there are errors in the form filling out it will send back an errorand tell them to fix it, without refreshing the form. the problem is …

Member Avatar for twiss
0
208
Member Avatar for weblexie

Hi everyone, I have a question, first of all. I run a PHP, but instead of using [CODE]header("Location: index.php");[/CODE] I'm using this one, [CODE]echo("<script type='text/javascript'> window.location = 'index.php' </script>"); [/CODE] And this is worked. I have a new project now, and it have ajax, load PHP files inside <div> tag. …

Member Avatar for twiss
0
76
Member Avatar for twistidphreak

I want the images to change (rotate) in sequence when the page is refreshed not random like i have below. Can someone help me with this please? Also I also need text to change on refresh to because I am going to have a descritption of the image below. So …

Member Avatar for twiss
0
204
Member Avatar for Buppy

Hello, I have a JS/jQuery based date picker - calendar. The algorithm itself is simple - a Calendar class that generates calendar, several methods for year/month change, etc, nothing that special. Since i have several independent date fields in the page, i am creating several independent calendars, for example, var …

Member Avatar for stbuchok
0
103
Member Avatar for tycoonz

Hi I really like the drop down that I found on [URL="http://www.scriptiny.com/2008/04/sliding-javascript-dropdown-menu/"]http://www.scriptiny.com/2008/04/sliding-javascript-dropdown-menu/[/URL] I have 4 Menus and when I add this this flows over the logo. The size of each menu is in fact too big. When I tried to alter this the size of sub-menus stay the same and …

Member Avatar for ko ko
0
159
Member Avatar for weblexie

Hi, please help me with my code. Javascript function if (document.myform.Available.checked == false) { document.myform.Save.disabled = true; <?php $query = mysql_query("UPDATE rewarditems SET Available = 'Yes' WHERE RewardItemID = '{$_GET['item']}'",$link1) or die(mysql_error()); ?> } else if (document.myform.Available.checked == true) { document.myform.Save.disabled = false; <?php $query = mysql_query("UPDATE rewarditems SET Available …

Member Avatar for ko ko
0
105
Member Avatar for zenghoong

I've made a "more" button and whenever i click it, another upload input will be displayed. Problem is, once I add the <div>, then it stops working. Is there any way around this? [CODE] <html> <head> <script type="text/javascript"> var instance = 1; function newUpload() { instance++; var newInput = document.createElement("INPUT"); …

Member Avatar for urtrivedi
0
109
Member Avatar for <:nohj:>

uhmm.. i have three textboxes and i combine the three values to generate a barcode value.. below is the function [CODE]function getBarCode(ItemCode,VendCode,Cat){ var Item = ItemCode; var Mcode = VendCode; var Category = Cat; var barcodeval = Item+Mcode+Category; if (Item == ''){ alert('Input A Itemcode Code'); return false; }else if(Mcode …

Member Avatar for urtrivedi
0
79
Member Avatar for sanaldev

i have used <param name="wmode" valur="transparent" /> and in <embed> tag inserted wmode="transparent" for overlaying the menu over flash player in my web site... it worked in firefox but not in chrome and IE.... how to resolve this problem??? waiting for a help............

Member Avatar for Ritesh_4
0
56
Member Avatar for Inny

Hi there, firstly I want to disable this part of an epic script. I dont want anything to happen onclick. [CODE]function checkOnClick(e,n){ window.open('http://www.camosreptiles.com.au/','_self'); return ;[/CODE] I tried making the bit at the end return false; but it had no effect. If I cannot do that, I need to fix a …

Member Avatar for Airshow
0
227
Member Avatar for md_salman

I am trying to create an HTML form in which user will enter different items (he wants to purchase) in text fields. One text field is used for one item. Now it is not known in advance how much items the user will purchase so we cannot decide the total …

Member Avatar for zenghoong
0
833
Member Avatar for slyme

Hi, Very new to JavaScript so I'm sorry if this is a daft question, I have searched for answers first and could not find anything that works for me ... so .. The task: One html form with two submit buttons. On submit (save changes) posts back to the same …

Member Avatar for twiss
0
768
Member Avatar for BlueCharge

Hello Everyone, I have chosen to use Google Custom Search with my website and was given the following code, my question is, how can i pass a search query from my homepage which has a standard form on there to the search page which holds this code? I am given …

Member Avatar for BlueCharge
0
233
Member Avatar for manu555

<script language="javascript"> function add() { var divTag = document.createElement("div"); divTag.id = "div"; //alert(divTag.id); //divTag.setAttribute("align","center"); //divTag.style.margin = "0px auto"; divTag.className ="dynamicDiv"; var v1 =document.getElementById('ttlBoxes').value; var v2 =document.getElementById('boxno[]').value; var d1=parseInt(document.getElementById('ttlBoxes').value); var d2=parseInt(document.getElementById('boxno[]').value); if(v1!=""&& v2!="") { if(d2<d1) { divTag.innerHTML ='<br /><table width="101%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable" ><tr ><td width="150" class="label" ><select id="boxtype[]" …

Member Avatar for stbuchok
0
97
Member Avatar for manu555

[CODE] <script language="javascript"> function add() { var divTag = document.createElement("div"); divTag.id = "div"; //alert(divTag.id); //divTag.setAttribute("align","center"); //divTag.style.margin = "0px auto"; divTag.className ="dynamicDiv"; var v1 =document.getElementById('ttlBoxes').value; var v2 =document.getElementById('boxno[]').value; var d1=parseInt(document.getElementById('ttlBoxes').value); var d2=parseInt(document.getElementById('boxno[]').value); if(v1!=""&& v2!="") { if(d2<d1) { divTag.innerHTML ='<br /><table width="101%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable" ><tr ><td width="150" class="label" ><select …

Member Avatar for manu555
0
355
Member Avatar for zodiac19

hello, Can you give me an iframe code that will display another page in my website. For example, I want to display specifically the login area of facebook. let say 100px by 40px. Then, when someone logged in their account it will change view to the center of the facebook …

Member Avatar for almostbob
0
107
Member Avatar for cutexxbaby

hi i am doing a project now i going to use ajax to retrieve coordinate from the json in html and pin the coordinate onto a point on the map using javascript but the problem is i am only able to use one point on the map can tell me …

Member Avatar for Airshow
0
187
Member Avatar for michaelzip

Hi. I don't know where the problem is. The next codes is working on Google Chome but not in IE. I haven't tested yet on Firefox. function.js [CODE]function getSheetCount() { var xmlhttp; if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { var …

Member Avatar for michaelzip
0
334
Member Avatar for gamefreak5678

I am trying to pass multiple variables and it is not working. When I click a link, I would like this to execute, but nothing happens. When I'm passing only one variable, this does work. Am I leaving out a part? Here is the code: [CODE]function test(s,g) { if (window.XMLHttpRequest) …

Member Avatar for twiss
0
117

The End.