15,120 Topics

Member Avatar for
Member Avatar for arunthewolf

Kindly note the error which i made in my code : <html> <head> <script type="text/javascript"> function createCanopyPath(context) { // Draw the tree canopy context.beginPath(); context.moveTo(-25, -50); context.lineTo(-10, -80); context.lineTo(-20, -80); context.lineTo(-5, -110); context.lineTo(-15, -110); // Top of the tree context.lineTo(0, -140); context.lineTo(15, -110); context.lineTo(5, -110); context.lineTo(20, -80); context.lineTo(10, -80); context.lineTo(25, …

Member Avatar for lambing
0
232
Member Avatar for ryanhx64

**Ok i have this script it opens desired page then closes at desired amount of time. How do i make it redirect to something rather than google.com when closing** <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>Test Page</title> <style> body { font-family: sans-serif; } </style> </head> <body> <p><a href="#" id="target">Start …

Member Avatar for firdaus_lazim
0
385
Member Avatar for plorkz

Ok, I'm new to visual studio 2010 and also new to AJAX in .NET (I've done AJAX via jquery and classic ASP before). I want to simply make a call from a client-side function to a server-side ASP.NET (VB) function to get a set of data, could be a datatable, …

Member Avatar for JorgeM
0
103
Member Avatar for webflybullet

It is possible to build the deaktop web application with the extjs. Please see the demo at here: http://www.tomatocart.com/products/store-demo.html It's very good.

Member Avatar for pritaeas
0
54
Member Avatar for rotten69

Hi there, I was trying different types of array initialisation in Javascript and the book that I was reading, said it is possible to initilaise an array with a speicified number of elements in it. However, I tried it and unfortunately, it didn't work. As you can see the code …

Member Avatar for sepp2k
0
219
Member Avatar for kurtzky

I have an ASP Classic page with SHIFT_JIS charset. It has a meta tag under the <head> section like this: <meta http-equiv="Content-Type" content="text/html; charset=shift_jis"> My page has a text box (txtName) that should only allow 200 characters. I have a Javascript function that validates the character length, which is called …

Member Avatar for kurtzky
0
433
Member Avatar for dinners

I have written a form in html and wish to submit it and run some php code, however once the php file has finished it main job I want to use it to redirect to my homepage where I am using AJAX to change content (where the form is). Is …

Member Avatar for dinners
0
229
Member Avatar for rotten69

Hi there, I was wondering what the string.split() does. And another question is that I want to loop through the class like Math and find out what functions are defined in it.But, I was not too sure how to that. I tried a couple of things but they unfortunately didn't …

Member Avatar for rotten69
0
219
Member Avatar for simplypixie

I have the following script: $('#login-box .forgot-pwd').click(function (e) { e.preventDefault(); $('#login-box #main-login').hide("fast"); $('#login-box .login-error').hide(); $('#login-box #forgot-login').show("fast"); $('#forgot-username').focus(); $('#login-box .forgot-send').click(function (e) { e.preventDefault(); $.ajax({ url: '/login.php', data: $('#login-box form.get-password').serialize() + '&action=forgot', type: 'POST', success: function(html) { if (html == 'success') { $('#login-box #forgot-login').hide("fast"); $('#login-box').append('<p>Your password has been emailed to you</p>'); $('#mask …

Member Avatar for simplypixie
0
289
Member Avatar for abhi10kumar

I have city and its corresponding locality. When user clicks city then its locality will show in Dropdown-Checkbox. How I can do with jQuery, AJAX and MySQL.

Member Avatar for abhi10kumar
0
1K
Member Avatar for spyece

Hello, This is my first tumblr theme attemt and this is what i have got so far, the masonry is working on the main page, but when the infinite scroll jquery plugin loads the second page the sorting acts funny, here are the urls → Live Url : http://rmlthemer1.tumblr.com Complete …

Member Avatar for lambing
0
260
Member Avatar for vijayram

Hi everybody, what can i missing my code jquery click function display only error function alert msg. plz help me. function changePage(page) { $("#criteria_page").val(page); $("#search_new_friend").click(); } function inviteToMypeople(personalId) { if (confirm("Are you sure you want to invite " + full_name + " to your layer?")) { $.ajax({ url: $("#url_invite_to_layer").val(), data: …

Member Avatar for lambing
0
133
Member Avatar for Neetumishra

Hi, I am very new in writing javascript so please apologize for that if I am asking very simple things. I am trying some thing like this but it's not working: <script type="text/javascript"> $(document).ready(function() { $("#accordion").accordion(); }); $(window).load(function() { $('#slider').nivoSlider(200); }); </script> Please can anyone help me regarding this. I …

Member Avatar for lambing
0
87
Member Avatar for dartiss

I'm struggling with a bit of JavaScript and I was wondering if somebody could help? I have the following code in some JavaScript... var state = document.getElementById(id_image).src; id_image contains a specific ID of an image file that I'm looking for. The result should return the image URL. However, if the …

Member Avatar for dartiss
0
191
Member Avatar for Violet_82

HI guys, I was reading some tutorial about a crossfading gallery, and I am having a few problems understanding it Here's the code. HTML (just the relevant bits) ... <div id="photos"> <img alt="Glendatronix" src="../../images/glenda_200.jpg" /> <img alt="Darth Fader" src="../../images/fader_200.jpg" /> <img alt="Beau Dandy" src="../../images/beau_200.jpg" /> <img alt="Johnny Stardust" src="../../images/johnny_200.jpg" /> …

Member Avatar for pritaeas
0
186
Member Avatar for daniel36

i have the code in my project- <Script language="JavaScript"> function goto(form) { var index=form.select.selectedIndex if (form.select.options[index].value != "0") { location=form.select.options[index].value;}} </SCRIPT> <FORM NAME="form1"> <SELECT NAME="select" ONCHANGE="goto(this.form)" SIZE="1"> <OPTION VALUE="">-------Choose a Purpose------- <OPTION VALUE="<?php echo base_url()."admin_panel/post_pmb/project"; ?>">Project Discussion </option> <OPTION SELECT="SELECTED" VALUE="<?php echo base_url()."admin_panel/post_pmb/general"; ?>">General Discussion</option> </SELECT> </FORM> in this code …

Member Avatar for niranga
0
326
Member Avatar for Nabaneeta

I have two dropdwon box. First box has names of the states. Choosing a state will populate the second dropdown box that contains cities of that selected state. For all states city names are stored in mysql database table. now I am little confussed how to model the table and …

Member Avatar for diafol
0
399
Member Avatar for chrishea

I'm not very familiar with Javascript or Regex but I built a script that is working well with one small flaw in the Regex part. What I want to do is to find commas following alpa-numeric characters (actually almost anything other than a double quote) and then replace the comma …

Member Avatar for pritaeas
0
279
Member Avatar for lambing

is it possible to access an Iframe without a source in IE8 and setting it's content? (e.g. iframe_obj.contentWindow.document) For example I wanted to get the head tag inside that dynamically created iframe: iframe_obj.contentWindow.document.getElementsByTagName('head') Then setting it's content: iframe_obj.contentWindow.document.getElementsByTagName('head')[0].appendChild(dom_obj);

0
59
Member Avatar for cgull

Hello, I am trying to create a jquery banner. I found lots of tutorials and managed to create a banner but I still need some help. I have 4 divs: First div slides from top Then Second div fades in Then Third div fades in and changes it's width Then …

Member Avatar for cgull
0
138
Member Avatar for Albert Pinto

Hi people, need some help... I have a dropdown list with some options in it.. I have 2 buttons Select all and Reset. What I want is, on click of Select All button, all the options inside it should get selected. and Reset button should clear the entire form. This …

0
104
Member Avatar for Larrywaz

<script type="text/javascript"> function moveover() { document.getElementById('image').width="1080"; document.getElementById('image').height="600"; } function moveback() { document.getElementById('image').width="180"; document.getElementById('image').height="100"; } </script> </head> <body> <img id=image src=images/PCF10.jpg onmouseover="moveover()" onmouseout="moveback()" width="180" height="100" /> <br /> <br> <body> <img id=image src=images/PCF94.jpg onmouseover="moveover()" onmouseout="moveback()" width="180" height="100" /> <br /> </body> </html> I have a page with multiple small images posted …

Member Avatar for JorgeM
0
136
Member Avatar for iamthwee

Hi, At the moment I'm learning Jquery and I'm using youtube for my tutorials which is great. I've downloaded the Jquery toolkit and I'm just playing with it. Just wondering what are the best resources to use? What do you use?

Member Avatar for Violet_82
0
167
Member Avatar for HTMLperson5

Hi guys, I was making a text based game in javascript.. Here it is: <!doctype html> <script type="text/javascript"> //Experimental Code - Text Based RPG function error() { alert(+choice+ "is not a recognised command") maingame() } function maingame() { choice = prompt('You find yourself in a dark room...do you\n[1]Eat cheese\n[2]Do stuff') …

Member Avatar for sepp2k
0
1K
Member Avatar for HTMLperson5

Hi, I'm new to JS: <!doctype html> <script type="text/javascript"> //JS start function give_me_an_alertbox(): alert("This is an alert box."); //JS end </script> <a href="javascript: give_me_an_alertbox()">ALERT BOX!</a> How come this code does not work!? How do I refer to Javascript using `href` ?

Member Avatar for JorgeM
0
216
Member Avatar for Coyx

Hi all, I have a video on a page on our company website, it's live but not accessible without the URL, it's not displayed on the website yet. Anyhoo, what I'd like to do, is progressively download it, as soon as you turn up to the website, is there any …

Member Avatar for thing789
0
90
Member Avatar for persianprez

I dont know if this code actually exits, however I can't figure how to do it. You know how you can write javascript in a url of a website and write a command, I would like to do that except remotely. So something like this: >load website remotely (without loading …

Member Avatar for thing789
0
226
Member Avatar for sri.

window.print method not working in ie browser **mycode:** <html> <head> <title>main</title> </head> <body> <h1>Pop & print</h1> <button onclick="pop();">Pop</button> <script type="text/javascript"> var POP; function pop() { POP = window.open('', '', 'width=350,height=350'); POP.document.write(" message content message content message content message content message content <br/>"+"<a href='JavaScript:window.close()' style='float:right;'>Close</a><a href='JavaScript:window.print()' style='float:left; text-decoration:none;'><input type='button' value='Print this …

Member Avatar for dany12
0
297
Member Avatar for Thropian

Trying my hand a Javascript, I came across an issue with XMLHttpRequest. This is probably something I'm doing wrong, so any help would be appreciated. reader = new XMLHttpRequest() reader.open("GET","Votes.xml") alert(reader.readyState) reader.send() alert(reader.readyState) when I run this, it alerts that the readyState is 1 (Send has not been called) and …

Member Avatar for rileyganimator
0
161
Member Avatar for mbarandao

Good day All: I was wondering if anyone have had experience dealing with the browser history inside an Iframe. Specifically, how to navigate with the back button throught the history inside the Iframe ONLY, and not the entire page. I have an Iframe that is called inside my page like …

Member Avatar for mbarandao
0
9K

The End.