15,113 Topics

Member Avatar for
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
288
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
259
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
150
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
371
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
137
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
100
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
296
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
Member Avatar for MaddTechwf

I'm trying to develope a Javascript fuction that will show the current funds raised. I'm needing to be able to specify a Start Dollar Amount ($0), Goal Dollar Amount ($XXX,XXX,XXX), and a Current Dollar Amount ($XX,XXX). I would like to have this show up as numerical amount and then also …

Member Avatar for rotten69
0
242
Member Avatar for abhi10kumar

I have three javascript/jquery scripts and I need all of them. I am new in jquery so not able to add all three scripts. If I do all then one of them do not work. I need to put all three scripts into one. <script type="text/javascript"> $(function(){ // off $("#pgfor").twoitems({ …

Member Avatar for pritaeas
0
321
Member Avatar for VenusCrystal

Hi , I need to know how to pass html element into jquery function. My sample html code is given below: <html> <head> <script src='../../core/js/jquery-1.4.2.min.js'></script> <script src='../../core/js/jquery-ui-1.8.1.min.js'></script> <script src='../../core/js/extensions.js'></script> <script src='../../core/js/prot-lib.js'></script> </head> <body> <table> <tr> <td class='r1'> <chl class="chl"> <chli class="menu-list"> <li id="s0" class="item" onClick="handle('s0')">NJ</li> <li id="s1" class="item" onClick="handle('s1')">TX</li> </chli> …

Member Avatar for pritaeas
0
5K
Member Avatar for ShadyTyrant

I am working on a redirect script for a fancybox that loads a video, and then redirects the user to a new webpage when the fancybox is closed. I have the loader, and the redirect working. However every video that is loaded redirects to the same page. I believe this …

0
97
Member Avatar for aki2all

<?php include 'functions.php'; if(!loggedin()) { header("Location: index.html"); exit(); } $session = $_SESSION['empno']; $dbName = mysql_query("SELECT ename FROM employee WHERE empno = '$session'") or die(mysql_error()); $nameResult = mysql_fetch_array($dbName); $name = $nameResult['ename']; $reqno = $_GET['id']; //echo $reqno; exit; $amtApproved = $_GET['amtApproved']; $query = mysql_query("SELECT * FROM requisition WHERE reqno = '$reqno'") or …

0
115
Member Avatar for cgull

Hello, I have a problem with an Ajax call on IE9. I have searched the internet and this forum for solutions for a few hours and can't find an answer. I have a coffee roastery site (developed with Codeigniter), where the users can order coffee bags online. The user selects …

Member Avatar for cgull
0
839
Member Avatar for emtw

Hi, I've been working with Ruby on Rails to make a web application, but I've found something that I really cannot work out how to do with it, so it may be best if I do it manually. Basically, I've got a dropdown menu, that is populated with a list …

0
103

The End.