15,688 Topics

Member Avatar for
Member Avatar for fheppell

I need to have a script that warns users of leaving without saving changes $(document).ready(function () { $('input').change(function () { window.onbeforeunload = function () { return "You still have unsaved changes!" }; }); }); I found this code, but it goes off when I click the submit button, which is …

Member Avatar for AleMonteiro
0
107
Member Avatar for livlikestar.jame

Problem : String : Hello World Output : H occured 1 times e occured 1 times l occured 3 times o occured 2 times W occured 1 times r occured 1 times d occured 1 times How to do it in Javascript...

Member Avatar for AleMonteiro
0
134
Member Avatar for oishi

I am trying to load php file with jquery into div. The php file contains pagination. However, when i tried it, it seems that, the jquery is not working. But, when I access it in website directly, its working. Do you have any idea how can I load the php …

Member Avatar for oishi
0
260
Member Avatar for yaragalla_mural

I am interested to know how styles work in textarea. when i am posting a question on this site, I type my text in the text area and i am adding styles to it like making selected text bold and also displaying the same on the html page. how does …

Member Avatar for LastMitch
0
114
Member Avatar for mpc123

Hi Hope someone can help with this. I have javascript set up how i want it in a normal html page but now need to ensure i can call a result using php with it. My code throws out an error The code states Parse error: syntax error, unexpected T_STRING, …

Member Avatar for mpc123
0
153
Member Avatar for tomparker

This may be a little 'outside the box' as far as mega menu's go, but I'm trying to do a 'flyout' or submenu off of a mega. Take a look at http://morningstartv.com, and hover over 'Channels'. When 'Sunday Services' is hovered over, I want a menu to appear to the …

Member Avatar for tomparker
0
285
Member Avatar for yaragalla_mural

Hi i am working with an web application. in my webapp on the browser i am intiating an ajax call to update part of the page. I get the response as html from the server and i will insert the complete response into the div which displays it. I got …

Member Avatar for yaragalla_mural
0
328
Member Avatar for LOI_SE

I'm writing a VB.NET software application in which I want to plot some placemarks on a google map which is in a webbrowser control in the application. weburl = applicationpath & "/googlemaps.html" WebBrowser1.Navigate(weburl) To accomplish this I call a javascript function from VB.net in this button event: Private Sub Button1_Click_1(ByVal …

Member Avatar for TnTinMN
1
1K
Member Avatar for mano7859

Hi :) I don' know how to hide some div with special class. This is my html code: <div id="subMain"> <div id="archivesResult_Content"> <div id="box"> <div id="categorie" cat="2"> ... </div> </div> <div id="box"> <div id="categorie" cat="14"> ... </div> <div id="categorie" cat="5"> ... </div> <div id="categorie" cat="14"> ... </div> </div> <div id="box"> …

Member Avatar for AleMonteiro
0
285
Member Avatar for vinaysrk

`Inline Code Example Here`i have a page defalt.aspx <body> <div id="content"></div> </body> and i have genereated dynamic div through jquery reference to id "content" like #(document).ready(function(){ var a=$("#content"); $(a).append("<div class="scrollbar"><%--some content here-----%></div>") }); this above jquery work fine and seen in inside the "content" when i run the default.aspx but …

Member Avatar for menakshi
0
95
Member Avatar for pucivogel

I have this part of code, ajax will call a function saveContact with parameters name, phone, email, address, is this code ok? $.ajax({ url: 'addressbook.php', data: 'action=saveContact()','&name='+name+'&phone='+phone+'&email='+email+'&adresa='+adresa; dataType: 'json', type: 'post'

Member Avatar for AleMonteiro
0
2K
Member Avatar for kitschkath

Hi there~ I am kinda coding a verrry simple information system which uses Javascript. I am not familiar with JS and I only know the basics, but maybe what I'll ask is a veeery simple one but oh well, should I be asking if I found a solution after searching …

Member Avatar for urtrivedi
0
224
Member Avatar for yaragalla_mural

i have to display a combo box with some dynamic values that comes from the database when user checked a checkbox on the currently being viewed html page. I am getting dynamic values from the webserver as json or xml. Now i have take the values from the json or …

Member Avatar for riahc3
0
108
Member Avatar for Violet_82

hi chaps, I am having some trouble decoding this regex in a javascript (wasn't entirely sure whether javascript was the right place to post this since it has more to do with regex). I am very new to it - this is the first time I look into that - …

Member Avatar for Violet_82
0
207
Member Avatar for Kavya_1

how could i run a javascript means with what extension i have to save it

Member Avatar for James_Smith
0
123
Member Avatar for scaiferw

I have a lab management webapp that lists servers on my network. With a click in IE I can open a terminal services session to that server. The code - shown below - works in IE, but not in chrome or firefox. Can anyone suggest how I can make this …

Member Avatar for LastMitch
0
289
Member Avatar for methuselah90

I am trying to display results from the process page on the host page. At the moment I keep getting the **Uncaught ReferenceError: data is not defined** error message. How do I go about fixing this? **form.php** $(document).ready(function () { // variable to hold request var request; // bind to …

Member Avatar for LastMitch
0
4K
Member Avatar for Travus

I am trying to submit a form using JavaScript however when I click my button the text in the form disapers but nothing is sent or posted to my php script. <?php require_once("../content/includes/validation.php"); ?> <!DOCTYPE html> <html lang="en"> <head> <title>Contact | Buffalo Bridal Association</title> <meta charset="utf-8" /> <meta name="description" content="" …

Member Avatar for Travus
0
2K
Member Avatar for mehar89

It show error in the dreamweaver $('#left_bar .cart-info').append('<div>'+localStorage["myid"] = document.getElementById("myid").value =parseInt(localStorage["myid"] || "0", 10) + 1;+'<input id="myid" type="text" name="itemquantity[]" value="1"/></div>');

Member Avatar for stbuchok
0
134
Member Avatar for riahc3

Hello Im trying to modify something when clicking on a input text field. The id of that field is cart[1223686][qty]. Tried your standard: $j("#cart[1223686][qty]").click(function() { alert("Handler for .click() called."); }); But nothing. What is wrong? (Yes, $j is correct)

Member Avatar for riahc3
0
142
Member Avatar for Venter

Hi i'm trying to save the data in local storage.But it Works Correctly As My code.But i want to save the data in different Manner. Here is my code Snippet Walk Through It And MAke Corrections.... <!DOCTYPE html> <html> <head> <script> //function for \to check whether the input value is …

Member Avatar for gon1387
0
115
Member Avatar for mehar89

how to increment the input field value in javascript on page load?? for example <input type="text" name="itemquantity[]" value="1"/> after page load it should be like <input type="text" name="itemquantity[]" value="2"/> and so on on next page loads any help???

Member Avatar for gon1387
0
2K
Member Avatar for pucivogel

Can anyone explain me better the conpcept of the webservice. I'm using wamp for a school project, i'm creating an adress-book with JSON and AJAX. The Deitel's one if you have encounteered it before. I have the deitel's code and simply want to implement it in my website. It's requesting …

Member Avatar for gon1387
0
237
Member Avatar for JayJ

I think I'm just having one of those weeks where whatever I try to get this work simply does not work. At one stage I did not think that I was far off solving this problem, but now I feel as if I'm further away from the solution. I'm simply …

Member Avatar for riahc3
0
299
Member Avatar for ckjaseem

Hi , Can anyone tell how I will send the local time zone to the server and so that I can convert the unix time(coming from the database) to the local time and display it on the clients side using php (In short I dont want to use javascript when …

Member Avatar for LastMitch
0
384
Member Avatar for romiaujla

I have the following code on a website, And my issue is that this code given below fades the flash file on all the browsers that I use on a Mac computer, But when I use windows it only fades the flash file on Google Chrome, but does not fade …

Member Avatar for LastMitch
0
191
Member Avatar for welshly_2010

i am having problem filling a selection box with json data. here my php code <script src="jquery.js"></script> <script src="jquery.jCombo.js"></script> <style type="text/css"> </style> <?php $directory = opendir("C:/xampp/htdocs/xml"); $storeFilesIntoArray[] = "please select XML to load"; while (($fileName = readdir($directory)) !== false) { $getLastFourDigitsOfFile = substr($fileName,-4); if($getLastFourDigitsOfFile == ".xml") { #echo "filename is …

Member Avatar for gon1387
0
190
Member Avatar for thomaspoul

i am little bit confuse about ajax, ajax makes vrowsing fast.....waht is the procedure of doing this, is anynody tell me.

Member Avatar for JorgeM
0
95
Member Avatar for riahc3

Hello Lets clear it up a bit: I want to get the width and height of the browser window where I can click. This does not include scrollbars/toolbars. I thought it was with innerheight/width. Strangly, width works (I resize it and onload shoots a alert and it is changed) but …

Member Avatar for riahc3
0
273
Member Avatar for riahc3

Hello Now that I know how to get the width/height, how can I detect if the browser is maximized or not? Crossbrowser of course. Thanks

Member Avatar for AleMonteiro
0
232

The End.