15,688 Topics
![]() | |
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 … | |
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... | |
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 … | |
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 … ![]() | |
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, … | |
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 … | |
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 … | |
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 … | |
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"> … | |
`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 … | |
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' | |
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 … | |
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 … | |
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 - … | |
how could i run a javascript means with what extension i have to save it | |
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 … ![]() | |
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 … ![]() | |
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="" … | |
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>'); ![]() | |
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) | |
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 … | |
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??? | |
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 … | |
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 … | |
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 … ![]() | |
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 … ![]() | |
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 … | |
i am little bit confuse about ajax, ajax makes vrowsing fast.....waht is the procedure of doing this, is anynody tell me. | |
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 … | |
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 |
The End.