15,116 Topics

Member Avatar for
Member Avatar for rotten69

Hi there, I would like to know what the differences between primitive string type and object string type are because I declared both of them and had a look the functions that I can invoke on them. They are the same functions. Can anyone explain the differences/similarities please?

Member Avatar for Taywin
0
171
Member Avatar for Cornerslikemad

I was trying out the examples from w3schools. I was wondering if is possible to extract the lastvisit data separately from username. function checkCookie() { var username=getCookie("username"); if (username!=null && username!="") { alert(unescape(document.cookie.split(";"))); }

Member Avatar for Taywin
0
19
Member Avatar for ehpratah

Hi im having a nerve wrecking problem with my script, i'm trying to make a form validation that when a field is empty it will prompt a message that needs fo fill up the missing fields..and i made it already the problem is when i put a separate script for …

Member Avatar for AleMonteiro
0
331
Member Avatar for mcrbne

Hi ; i have 2 javascript , but they dont work on same page , how can i do it ? This is the first one : <script type="text/javascript"> function configureDropDownLists(XLEW_3_5_3,XLEW_3_6_3) { var K31_213mm = new Array('90', '106'); var K32_245mm = new Array('90', '106'); var K33_338mm = new Array('90', '106'); …

Member Avatar for Taywin
0
204
Member Avatar for monkeybut

I am trying to get a query to run to update the status of the system whenever the radio button is selected without having to use submit buttons, but for some reason I cannot get it to work right, here is what I have so far but it isn't working, …

Member Avatar for monkeybut
0
268
Member Avatar for rotten69

Hey there, Why does the function compact not work for me? it is a function according to the javascript documentation. The problem is, however; if I add the brackets after it, the browser complains for some reason and it says compact is NOT a function. Also, with the function parseInt, …

Member Avatar for Taywin
0
1K
Member Avatar for VenusCrystal

Hi I am going to new page from current page on click of a button using function : function gotonextpage() { window.location.href = "newurl"; } I also want to call another function on load of new page to set its paragraphs. I am hiding or showing paragraphs based on a …

Member Avatar for VenusCrystal
0
248
Member Avatar for rotten69

Hi there, I was reading a book on the plane and something interesting came to my mind that needs an answer. The length property of objects is a read/write value. Let's say, you've got an array that has 6 elements in it and you change its length to 10 as …

Member Avatar for Troy III
0
285
Member Avatar for Stefano Mtangoo

I have done alot of OOP for long now (with C++/Java/Python etc) but world of JS is confusing. I wanted to try it by writting Ajax library (I know there are libs but this for JS OOP familiarization) and found confusing. No class keyword et cetera. What is happening? Am …

Member Avatar for Troy III
0
144
Member Avatar for rotten69

Hi everyone, The function I've got works perfectly but the problem is that it displays the message quickly and then the message disappears for some reason. Am I doing something wrong?? function validateForm(){ var input0 = document.getElementById('input0').value; var input1 = document.getElementById('input1').value; var input2 = document.getElementById('input2').value; var input3 = document.getElementById('input3').value; var …

Member Avatar for Troy III
0
223
Member Avatar for <M/>

I wrote the code for a jquery slider... it doesn't seem to work... can someone tell me why it doesn't work??? Could it be because jquery is installed wrong or it can't find it? Here is my code (I did this all in 1 file) <title>Slider</title> </head> <script src="jquery-1.7.2.js" type="text/javascript"></script> …

Member Avatar for JorgeM
0
162
Member Avatar for Szabi Zsoldos

Guys, I'm having a problem with the Magento Platform. Trying to build an auto-populated option with Ajax, it works flawless in a simple folder outside Magento. But with Magento, it's not populating from data.php <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("select[name='marca']").change(function(){ var optionValue = jQuery("select[name='marca']").val(); jQuery.ajax({ type: "POST", url: "data.php", data: ({marca: optionValue, …

Member Avatar for sonamhudson
0
231
Member Avatar for Morta

hello,I Need RSA system code with javascript ,i heared there're some rsa libraries in the internet , i looked for it , and i found some thing but it's not what i look for , i look for library applied (PKCS #1 v2.1) or (PKCS 12 v1.0),i have project and …

Member Avatar for pritaeas
0
150
Member Avatar for nova37

hello i got alexa charts links from internet today <!--Daily Traffic Rank Trend--> <script language="JavaScript" type="text/javascript" src="http://xsltcache.alexa.com/traffic_graph/js/g/b/6m?&amp;u=http%3A%2F%2Fwww.yoursite.com+++++"></script> <!--Daily Traffic Rank Trend--> <img src="http://traffic.alexa.com/graph?&amp;w=400&amp;h=220&amp;o=f&amp;c=1&amp;y=t&amp;b=ffffff&amp;r=1m&amp;u=yoursite.com&amp;"> <!--Daily Reach in Percent--> <img src="http://traffic.alexa.com/graph?&amp;w=400&amp;h=220&amp;o=f&amp;c=1&amp;y=r&amp;b=ffffff&amp;r=1m&amp;u=yoursite.com&amp;"> <!--Daily Page Views--> <img src="http://traffic.alexa.com/graph?&amp;w=400&amp;h=220&amp;o=f&amp;c=1&amp;y=p&amp;b=ffffff&amp;r=1m&amp;u=yoursite.com&amp;"> i want to insert them in html form with few button for every chart and want …

Member Avatar for Taywin
0
208
Member Avatar for vijayram

Hai,everybody i need help how can i make it user click join button->change the text "view" after that user click view btn goes another page any body plz help me. this code change text working fine. function showtext() { document.getElementById("joinbutton").childNodes[0].nodeValue="View in MyPlans" } <a href="#" id="joinbutton" class="planpeople" onclick="javascript:showtext()">Join</a>

Member Avatar for Taywin
0
177
Member Avatar for onsixam

i'm trying to animate a carousel with the roundabout plugin ,i want it exactly achieve this in the image below. http://www.hostingpics.net/viewer.php?id=316314cleansleekwebdesign.jpg unfortunately , the rendering that i get is different (click on the link below). http://onsixam.cfun.fr/roundabout.html i need to change the li dimensions (width and height ) and positions dynamically …

Member Avatar for onsixam
0
156
Member Avatar for rotten69

Hi everyone, Would anyone suggest good tutorials on simple game programming in javascript preferably using HTML4 ? Thank you..

Member Avatar for rotten69
0
210
Member Avatar for <M/>

I was creating a jQuery slider and I can't get the slider to even work... Can someone help me out with this question? Much appreciated if anyone can help!... Here is my code: HTML: <div id="slider img"> <div id="slideshow"> <div> <img src="img1.png"> </div> <div> <img src="img2.png"> </div> <div> <img src="img3.png"> …

Member Avatar for <M/>
0
170
Member Avatar for Zagal

Hi, I have some jQuery code which checks whether capslock is on, but it works only with .keypress(). I want to alert when document is ready, not when im filling input. Is it possible to check status of capslock and alert the user without filling the input?

Member Avatar for ssantoshreddy
0
104
Member Avatar for riptide355

Hi, I have a database program that creates URL's that look like this... http://www.mywebsiteDB.com/admin.php?toDo=module&module=RESERVATIONS&modsub=reservations or this http://www.mywebsiteDB.com/admin.php?toDo=module&module=RESERVATIONS&modsub=upcoming etc. I need to make a page that inserts fields into the database AJAX style, which I managed to do outside of the database program. However, when I put the code into a …

Member Avatar for riptide355
0
187
Member Avatar for phanisk

I have a php web service returning json data. My problem is that when i call the json data from url returns nothing but when a call a local file with exactly the same data (copy from the url) works fine. The json data i receive are for example {"ResponseData":[{"Code":"91010001","Description":"ISADORA …

Member Avatar for ko ko
0
283
Member Avatar for SBA-CDeCinko

We are currently running a modified version of jShowOff, a jQuery slider. It has never been modified since it was created back in 2009 and lacks a few features we need. I have been searching the latest crop of sliders and haven't found one with the features we need. It …

Member Avatar for pritaeas
0
231
Member Avatar for arcticM

I want to put my html in a php variable and use this variable in the .html() but it doesn't work as I expect it to..how can I do something like that? $var="<p>test</p>"; //this works $return['script'] = "jQuery('#form_pop_out').html('<p>test</p>');" //those don't work $return['script'] = "jQuery('#form_pop_out').html('$var');" $return['script'] = "jQuery('#form_pop_out').html('{$var}');" $return['script'] = "jQuery('#form_pop_out').html('".$var."');"

Member Avatar for arcticM
0
123
Member Avatar for laura301019

Hi have this piece of code to display images of cameras and a caption underneath which states what type of camera it is. However I cant get the caption to change, i posted this piece of code before and some responded stating i need to '==' not just one. I …

Member Avatar for AleMonteiro
0
173
Member Avatar for aus_fas1

I am trying to dynamically append DIV tag after the last one. Also if the user clicks remove button then div in which the remove button is clicked should be eliminated. My caption (is in JS and want to covert it in JQquery) is also not working well. There are …

Member Avatar for AleMonteiro
0
269
Member Avatar for Khav

Hi Guys I have a text area(in php) that contain some text.I want a javascript that select the text and copy to clipboard automatically.Then it display "Link copied to clipboard alongside the text area Can anyone of you suggest me a good javascript ?

Member Avatar for Troy III
0
146
Member Avatar for xbat

I have a bunch of drop down boxes, then after they are selected the the total amount automatically appears at the bottom.. the only problem is it appeears like this - <span id="resp">Total</span> How would I make this insert into the database?

Member Avatar for xbat
0
2K
Member Avatar for vuyiswamb

Good Evening Guys, Today its my Birthaday. I have a If statement that i use to return an integer that will mean Success or Failure , now am testing for that integer in my ASP.NET 2.0 Page lke this [CODE] if (Res == 1) { Response.Write("<script> alert('You have Successfully Registred');</script>"); …

Member Avatar for abhinavranjan19
0
171
Member Avatar for ratanji

dude anyone knw how to create to assign height and width dynamically in web page for images? like this site http://muslider.musings.it/

Member Avatar for Traevel
0
111
Member Avatar for VaibsBrainyStud

i am having problems in solving a few of my computer problems in 2d arrays.. for eg:- 1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 what would be the javascript to print this?? please help..its urgent :)

Member Avatar for DavidB
0
99

The End.