jquery x 2,329

20,316 Topics

Member Avatar for
Member Avatar for Wailintun

HI! my friends, Now I am trying to make a drop down which will show image map by selecting image from drop down,please check this link http://www.siteexperts.com/dhtml/ch9/chapter/samples/map1/switch.htm it's very similar to what I want to make but it has one pic. Please help me! thanks for your time!

Member Avatar for Member #949455
0
94
Member Avatar for nacedo

I have this chunk of jQuery that is doing strange behavior. When I load the page, my list is slided Up (completely folded) wich make sense. But I have to double click each parent to slide them down, which is not the normal behavior. I think this line is the …

Member Avatar for nacedo
0
1K
Member Avatar for leandros.ioannou

Hi i have an issue using top to bottom plugin, while it works, the problem is that the image is visible only on top and while i scroll down the image stays top. Below is the code: <html> <head> <style> #main { float:left; width:500px; background:#c9c; } #sidebar { position: fixed; …

Member Avatar for leandros.ioannou
0
357
Member Avatar for Member #949455

Hi I'm not sure what to used to split numbers and letter from words. So far I try **preg_split()** function and also **mb_split()** function both gave me **No ending delimiter ^** There is **^** (**caret**). For example my data is from my database and it's not an array and it …

Member Avatar for Member #949455
1
541
Member Avatar for Violet_82

Hi all, I wonder if you can help me at all. I need to display one ul list into separate (3-4) columns one next to the other one, only if the number of items is bigger than 6. Let's look at the following code. Html is: <div class="wrapper"> <h2 id="first">First</h2> …

Member Avatar for Member #949455
0
228
Member Avatar for ryan311

I have this jquery code <script type="text/javascript"> $(document).ready(function () { var counter = 2; $("#addButton").click(function () { var newTextBoxDiv = $(document.createElement('div')) .attr("id", 'TextBoxDiv' + counter); newTextBoxDiv.after().html('<input class="required" data-val="true" data-val-regex="Provide a valid date." data-val-regex-pattern="^\d{1,2}\/\d{1,2}\/\d{2}$" name="Date[' + counter + ']" id="Date[' + counter + ']" value="Date[' + counter + ']" style="width:165px" type="text" …

Member Avatar for Member #949455
0
1K
Member Avatar for root59

I am a big fan of the jqtransform plugin [URL="http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/"]http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/[/URL] but have discovered that when you add to many select fields on a page, the bottom half of the select fields do not open the option fields. I have a form which takes an passenger's date of birth, but there …

Member Avatar for rudywaltz
0
255
Member Avatar for turpentyne

My boss has several projects where i need to change out information. I did one with an included file of several divs that are hidden/shown, depending on what the user clicks on. It got tedious. But I don't have access to mysql to set anything up. Now I'm doing another …

Member Avatar for pritaeas
0
186
Member Avatar for sri.

Javascript string search string in array not working here is my code Mycode var array = ["foo","fool","cool","god",'searchstring']; var src_keyword=""; $("#search_str").click(function(){ src_keyword=$("#str_search").val(); find(array,src_keyword) }); function find(arr,src_keyword1) { var result = []; alert(src_keyword1); //src_keyword1="oo"; for (var i in arr) { var search = new RegExp(src_keyword1, "gi"); if (arr[i].match(search)) { alert(arr[i]) result.push(arr[i]); } …

Member Avatar for paulkd
0
385
Member Avatar for theguitarist

What are some common uses of HTML forms that contain just one text input and a submit button? The only one use I find is to submit search queries. Is there some other reason why this is commonly used?

Member Avatar for imBaCodes
0
225
Member Avatar for dewhickey

I know how to set it to auto jump to the next field in the form after a certain number of characters are entered. But that's not what I need. I need this: If number 2,3,4,5,6,7,8, or 9 is entered, I do want auto jump to the next field. However, …

Member Avatar for imBaCodes
0
201
Member Avatar for Kusno

Dear all, I can use this code to write a value in parent window control. [CODE]StrJScript = "<SCRIPT>parent.document.forms[0].TxtCustomerId.value = '" & ClearSpace(Row.Cells(1).Text.Trim) & "';</SCRIPT>" If Not ClientScript.IsClientScriptBlockRegistered("S1") Then ClientScript.RegisterClientScriptBlock(Me.GetType(), "S1", StrJScript) End If[/CODE] but, I cannot set iFrame visible to false. I use this code : [CODE]StrJScript = "<SCRIPT>parent.document.form1.iFrmCustomer.visible = …

Member Avatar for sachin.e
0
563
Member Avatar for Benji11092

Hi I am trying to create this application where I need to create a panel with different buttons. I can select a button and drag a button on to a canvas. Can anyone tell me how to create a dragging button.

Member Avatar for <M/>
0
208
Member Avatar for emilio

hi i have a simple website that includes a WebService and a Webform page. i'm trying to call my web service from the web form using jquery. when i type the web service's url using https, i get "Access denied" error from internet explorer. the call works just fine when …

Member Avatar for emilio
0
271
Member Avatar for deepak.fugo

Hi All, How can we set a value to iframe textbox element either in JS/Jquery <head> <script type="text/javascript"> function load() { alert("Frame is loaded"); myframe.document.getElementById("user_email").value = "<?php echo $var ?>"; } </script> </head> <body> <iframe onload="load()" id="myframe" name="myframe" src="http://www.gigpayrr.com/signup" width="700px" height="600px"> <p>Your browser does not support iframes.</p> </iframe> </body>

Member Avatar for deepak.fugo
0
1K
Member Avatar for antwan1986

Hi everyone and thanks for reading! I use JavaScript to create sets of text boxes on the fly. I also have a hidden counter in a text box on the form which I also post to my PHP script. This hidden counter is how I tell PHP how many text …

Member Avatar for com00085
0
4K
Member Avatar for Reliable

I've gone through Code Academy's beginner's JS course. I would like to not only practice what I've learned more, but now move on to interdemiate lessons. Is there a site like Code Academy offering such things for free and online?

Member Avatar for imBaCodes
0
129
Member Avatar for debasishgang7

Hi, I have a problem.I have a third party HTML/Javascript code in which they have text area.They post the content of the text area when user press enter. there is no button to submit the form. So I wanna know how can I submit that form using javascript. Thanks.

Member Avatar for imBaCodes
0
186
Member Avatar for Kmhnz201

Can anyone point me to the right direction with validating a input field like this "p99” (i.e. a letter followed by two digits).

Member Avatar for imBaCodes
0
74
Member Avatar for jmay1327

Hello all, I am looking for a way to code up an exit popup. The problem I am having is a way around the alert box that pops first asking if the user would like to leave or stay on the page. I would like to show an small html …

Member Avatar for JorgeM
0
123
Member Avatar for blivori

Hi, Can anyone tell me why no 'products' are being displayed from the JSON file? This is my code: products.html: <!DOCTYPE html> <html> <head> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> <style>img{ height: 100px; float: left; }</style> <link rel="stylesheet" type="text/css" href="style.css"> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script> $.getJSON('products.json', function(data) { $.each(data.products, function(i, item) { …

Member Avatar for pritaeas
0
397
Member Avatar for rexmatthew

Can anyone help me? I'm trying to gat my reservation calendar working with jquery tabs. Everything else works exept for this reservation calendar. When I remove the javascript from the header, the calendar works just fine but the tabs disappears... Can anyone please help...? <div class="reservationbox"> <div class="reservation_calendar" id="reservation_calendars"></div> <div …

Member Avatar for annaharris
0
252
Member Avatar for old_apache

this is my code: switch(a){ case 1: case 2: case 3: case 4: printf("4\n"); break; default: break; } i need the nodes to make control flow graph for testing purposes.

Member Avatar for old_apache
0
206
Member Avatar for unikorndesigns

Hi guys, I am getting very weird issue here. On my wampserver, this script works fine but not on my liver server which is linux. This is what it does. After a checkbox gets checked, the scripts identifies that and insert a row in table and that script send back …

Member Avatar for Member #949455
0
187
Member Avatar for allifields

Hi, so I have developed a top fixed navigation bar at the top of a webpage. How do I incorporate a fading navigation bar so that when I scroll down, the fixed bar turns from black to a certain opacity level? Is that something incorporating jquery? And if possible, if …

Member Avatar for Dani
0
999
Member Avatar for dhani09

I have the following code that gets input from users on a button click and draws on a canvas but when i click the button nothing works. Here's the code: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="mycss.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js.js"></script> <title>CANVAS</title> </head> <body> <canvas …

Member Avatar for dhani09
0
170
Member Avatar for chr.s

In order to make my AJAX functionality a little more efficient I've added a cache component; but this has given me a huge new headache. The AJAX related code is below. It listens for a click and checks if the user has already clicked that link. If not, it'll fetch …

Member Avatar for chr.s
0
347
Member Avatar for newrat

****** good day im new to this forum and i hope you can help me, I'm new to javascript i need to achieve a few things. my goal is to put a running timer for each text box generated ive read tutorials online and tested some codes and so far …

Member Avatar for newrat
0
210
Member Avatar for techd

Hi I have a datepicker: <input class="dmxCalendar2" name="dmxCalendar21" id="dmxCalendar21" /> <script type="text/javascript"> // <![CDATA[ jQuery(document).ready( function() { jQuery("#dmxCalendar21").dmxCalendar2( {"altFormat": "yy-mm-dd", "condDates": [], "firstDay": 1, "showOn": "both", "duration": "slow", "showOptions": {"direction": "up", "easing": "swing"}, "yearRange": "c-10:c+10", "onSelect": "MM_goToURL('parent','allactstest.html');"} ); } ); // ]]> </script> And also a script: <script> var chosenDate …

Member Avatar for Member #949455
0
224
Member Avatar for turpentyne

Quick question. I want to make a variable from just a section(substring?) of an id in javascript / or jquery. I've got four possible id names: link_north, link_south, link_east, link_west. I want to pull just the direction from the link to use as a variable, with this: var header_change = …

Member Avatar for Member #949455
0
125
Member Avatar for darkelflemurian

Good day everyone. i am having the following problem: i have an aspx page which has an iframe on it. the iframe resizes according to the content with no problem at all. but there comes 1 page that has an update panel inside and when i display the page in …

Member Avatar for JorgeM
0
96
Member Avatar for MasterHacker110

I have taken up a project of creating my own forum. A chat forum. I have started to design the homepage. But there is still much more work to do. The thing is I dont know how the folowing things work: Member login and that each member has their own …

Member Avatar for Member #895185
0
290
Member Avatar for Atlanta15Braves

I am trying to have my .js file have a function that will change the color of the text within the div tag named "ID=test". I have the function (below), but I think I am missing something. I have three buttons in my HTML (red, blue, and black) that should …

Member Avatar for EvolutionFallen
0
418
Member Avatar for cris.calleo

Hi, I need to get a variable value from dropdown and pass this to another JS file: On <SELECT> i have Onchange event, which get dropdown value. If I make selection, alert popup appear with correct value file.php ... script ... function __doPostBack(elm) { var user_id = elm.options[elm.selectedIndex].value; alert(user_id); } …

Member Avatar for EvolutionFallen
0
121
Member Avatar for MasterHacker110

I program in C++/C/C#/Java but recently started in web programming. I like javascript and i am wondering if one can use it to make desktop program like one would in c++ for creating e.g. console applications... Or is it only a language that can be used in inside a browser …

Member Avatar for IIM
0
151
Member Avatar for Violet_82

Hi there, on one of my pages I am working on [url]http://www.antobbo.webspace.virginmedia.com/photography/category_1.htm[/url] I have a script which works in firefox, opera but it doesn't in chrome and IE. Now, let me explain first what the script is supposed to do. On the above page if you click on the second …

Member Avatar for 1@3RaJa
0
2K
Member Avatar for akkbkht

Hello. I have a user defined function in start of an Html page. I want to add textfields in the innerHtml. Please guide me what should I do. When I enter string in the innerHtml on line 10 and 11, It show "New" in the cells. BUt i am adding …

Member Avatar for akkbkht
0
197
Member Avatar for raghasudha-r

[CODE]<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="_Default" %> <asp:Content ID="Home" ContentPlaceHolderID="Home" runat="server"> <script type="text/javascript" language="javascript"> function Validate() { var StartDate = document.getElementById[COLOR="Red"]('<%=txtstart.ClientID %>');[/COLOR] var EndDate = document.getElementById('<%=txtEnd.ClientID %>'); if (StartDate.value =='') { alert("Pick Start Date"); StartDate.focus(); return false; } else if (EndDate.value =='') { alert("Pick End Date"); EndDate.focus(); …

Member Avatar for raghu_005
-1
271
Member Avatar for yy886

I am thinking to implement a forum like Private Message into my website for those who are a registered member. (<100 Member anyway) So Member A can send a message to Member B. Member B will have a notification popup within some seconds saying that he received a new message …

Member Avatar for masterjiraya
0
253
Member Avatar for rexmatthew

I've been having trouble with just the map area and the calendar piece of my website. But more focused on the map piece. The map does not want to load properly or won't load at all in the second tab of my jquery tabs. I need help, I think I …

Member Avatar for rexmatthew
0
174
Member Avatar for red-axe

hi, i am a web and app developer. i need some help in a javascript code which belongs to a wordpress plugin - wp-imageflow2. wp-imageflow2 is a image slider with lightbox features. The slider moves from left to right and then back to the 1st image (basically image1 to last …

Member Avatar for Member #949455
0
316
Member Avatar for brood_snow

A list of courses is displayed and user has to select 1, so I used radio buttons. The course list vary from one student to another. If I have more than 1 courses displayed and user selects one, everything is ok, but if I display 1 course, the test is …

Member Avatar for Member #949455
0
386
Member Avatar for jinxmc

hi, how to write javascript code to validate first 2 textboxes that are generated from databses without "id" "name". eg:here everything comes from databse. name:<input type="text" id="{id}" name="{id}" class="textbox"/> "+" this feilds are generated with + button from database age:<input type="text" id="{id}" name="{id}" class="textbox"/> this does not have "+" here …

Member Avatar for IIM
0
497
Member Avatar for elbeato

I'm having trouble with cross-browser compatibilty with a jQuery click function. I want it to return the width of #bbox and have it play the animations based on what it returns. I have set the width of #bbox to 0px in my CSS as the starting state. THE PROBLEM: w …

Member Avatar for pixelsoul
0
809
Member Avatar for McLaren

I have revencly experimented with backbone, but did not use in real project yet. WHen I have oportunity I will try at work. Now considering what to study next. I hear lot of node.js is cool. But really don't understand why should I learn it. I tried googling, reading stackoverflow …

Member Avatar for McLaren
0
149
Member Avatar for aijaz110

i am creating website in that site i have to run news alert through javascript through event mouseover and mouseout plz help me how to perform that task in javascript?

Member Avatar for IIM
0
163
Member Avatar for turpentyne

I have navigation, with a dropdown subnav that gives them two options (level 6 and level 10). If they click on one or the other, it loads "views.php" then uses .html to write the correct information to sections. The img src portion isn't working??? I also tried just using .html …

Member Avatar for EvolutionFallen
0
342
Member Avatar for resant

Hi all, I want to know is it possible if I want to create a JavaScript function that when user choose menu to print a web page from the browser (not from a print button that is created) and at the same time get that print date and update to …

Member Avatar for Troy III
0
316
Member Avatar for turpentyne

I have a div that appears under a link (similar to a subnav) when that link is moused over. I want the div to fade, if they've moused away from the link UNLESS they've moused over the div. But my attempt failed: $('.tnav-views').live("mouseleave", function(event){ var timer = setTimeout(function(){ $("#view_levels_subnav").hide(); // …

Member Avatar for pixelsoul
0
106
Member Avatar for jinxmc

Hi, i am new to javascript i have requirement where <div> name:<input type="text" name="name"/> age:<input type="text" name="age"/> <input type="button" value="add"/> </div> when i click on add button it should add one set that is both name and age textbox, one add click 2 textboxes name and age with label. like …

Member Avatar for codersempire
0
2K

The End.