15,699 Topics

Member Avatar for
Member Avatar for OS_dev

I would like to be able to change the "wrap" attribute for a textarea with javascript. That is unless you can provide a cross browser solution in css2, giving me the ability to just modify the css attributes. Thank you in advance.

Member Avatar for OS_dev
0
265
Member Avatar for SKANK!!!!!

i have a dirctory full og images starting from 1.png to like 55.png not skipping a number. im going to keep adding to the directory in consiquative order. how do i have an image show on a page and then it get clicked on and then it turns to the …

Member Avatar for essential
0
155
Member Avatar for styles_p

well I want to know if javascript works well with asp controls for example: here is simple example: [CODE]<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script language="javascript" type="text/javascript"> function exe() { var a = parseInt(document.getElementById("txt").value); var b = parseInt(document.getElementById("txt1").value); document.getElementById("txt2").value = a - b; } </script> </head> <body> <form id="form1" runat="server"> <div> …

Member Avatar for vsmash
0
166
Member Avatar for gunnarflax

I'm having really hard to really grasp everything about the this object in javascript. I've been trying with tutorials but I haven't found a really good one. I mean, if I have a function which executes some code and then in the end I return "this" what exactly do I …

Member Avatar for vsmash
0
351
Member Avatar for emhmk1

Hi everyone, I'm very new to this whole ajax / javascript thing and i have a question regarding the image loader. Basically i want to add the image when the ajax is doing its stuff but i can't figure out where i need to put the code. As a matter …

Member Avatar for vsmash
0
92
Member Avatar for rrocket

I am trying to get a modal popup to display on an onblur event, but I keep getting a "'null' or is null or not an object" js error. I have seen many examples using [code=javascript] var _popup; _popup = $find('MPE'); _popup._show(); //And $find('MPE')._show(); //And $object('MPE')._show() [/code] But none of …

Member Avatar for AFAQ AHMED
0
358
Member Avatar for chetandht

I need help in calculating textbox value from java script for html Example: (textbox1value X textbox2value) + (textbox3value + textbox4value)= result where result value should display in textbox5 Please help me Waiting for your reply

Member Avatar for MyrtleTurtle
0
57
Member Avatar for delbois1651
Member Avatar for iggy248

I have a webpage with 2 images, mtastats.png, and mchammer.gif I want dragging mchammer.gif over mtastats.png (which is already an a href link) to execute the click() function in my code. I have it written out, but must be doing something small wrong. The script is at the top of …

Member Avatar for Airshow
0
147
Member Avatar for MDanz

I have a pop-up div. Basically what i want is when the pop-up div display:visible to cancel any onmouseover events. how do i do that? in simple, when div is visible, cancel onmouseover. then when div display:none, then enable onmouseover?

Member Avatar for Airshow
0
116
Member Avatar for leroi green

hey all, i found a way to click a link and load it into a div. the only problem is that i keep getting the "AHA error" from the if statement in my div. i'm not sure if it is me or the coding but i'll post what i'm using …

Member Avatar for memaddy
0
681
Member Avatar for Bubbleboy

I have a problem. I have an image set to the background, this method is working for fire fox, here is how i got a background image. [CODE]<img src="docs/Plasma.gif" id="background"/> <div id="content">[/CODE] Right after the body tag and [CODE]img#background { position:fixed; top:0; left:0; width:100%; height:100%; } #content { position:relative; z-index:1; …

Member Avatar for Bubbleboy
0
153
Member Avatar for lam3r4370

I have 100 inputs with name - table[]. How to get their value with jQuery,like $_POST['table'] ,as I do in PHP. I tryed [CODE]$("input[name='table[]']").each(function() { document.write($(this).val()); });[/CODE] but I want to get them as an array.

Member Avatar for Airshow
0
81
Member Avatar for bogdanxpose

Hi, I have a question about ajax, php si mysql.. In mysql i have a table playlists and here is the code for php: [code] <?php $playlist_result = mysql_query("SELECT *, COUNT(playlist_id) AS NumOccurrences FROM playlists WHERE created_by=$user_id GROUP BY playlist_id HAVING ( COUNT(playlist_id) > 0 ) ORDER BY date DESC"); …

Member Avatar for Airshow
0
79
Member Avatar for Admart

[code=php] <?php function get_string_between($str,$start,$end){ $str=' '.$str; $ini=strpos($str,$start); if($ini==0) return $tbl; $ini+=strlen($start); $len=strpos($str,$end,$ini) - $ini; return substr($str,$ini,$len); } function fix($va){ $va=strip_tags($va); $va=htmlentities($va); return stripslashes($va); } if(isset($_GET['from'])) $from=fix($_GET['from']); else exit(); if(isset($_GET['to'])) $to=fix($_GET['to']); else exit(); if(isset($_GET['num'])) $num=fix($_GET['num']); else exit(); $fs=file_get_contents('http://www.google.com/finance/converter?a='.$num.'&from='.$from.'&to='.$to); $parsed=get_string_between($fs,'ss=bld>',' '.$to.'</span>'); echo $parsed; ?> [/code] Example: I am going to currencies.php?from=USD&to=EUR&num=1 and …

0
44
Member Avatar for lordspace

Hi, Can somebody point me to a visual web CSS editor + live preview similar to Blogger > Layout > Page Elements where you could drag and drop elements and change styles. Thanks

Member Avatar for pritaeas
0
111
Member Avatar for thorshammer

My form Submit button has an onClick="myFocus()" call, which looks like: <code> theFocus = document.getElementById('warning'); theFocus.tabIndex = 'auto'; theFocus.style.background = 'red'; theFocus.focus(); </code> It works - briefly. Right after clicking Submit (top of form no longer visible when Submit reached), the focus goes to the target element and turns red …

Member Avatar for thorshammer
0
118
Member Avatar for filch

I have a page on which I have broken it down into several forms, which relate to specific categories applied to an awards contest for students. At the top of the page, I have a select list which, when a category is selected, I want it to show a particular …

Member Avatar for filch
0
103
Member Avatar for vinothkumarrvk

:)Friends. I need some good JQuery PDF ebooks. Please Help me to learn it. Thanks in Advance.

Member Avatar for vinothkumarrvk
0
63
Member Avatar for vijayzutshi

<script type="text/javascript"> function play(media){ document.getElementById('mediaplayer').innerHTML= '<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"' 'type="application/x-oleobject" width="320" height="285">' '<param name="showControls" value="false">' '<param name="fileName" value="' media '">' '<embed type="application/x-mplayer2" width="320" height="285"' 'showcontrols="false" src="' media '"><\/embed><\/object>' } </script> <div id="mediaplayer"></div> <ul id="menu"> <li><a onclick="play(this.href);return false" href="">Source 1</a></li> <li><a onclick="play(this.href);return false" href="">Source 2</a></li> <li><a onclick="play(this.href);return false" href="">Source 3</a></li> </ul> I have …

Member Avatar for vijayzutshi
0
137
Member Avatar for cloud09

I am trying to create an anonymous function for onchange event of file field, so that when a file is selected, the covering text field gets that value. I know how to accomplish this by adding onchange="", but I'd prefer not do that. The code that I have almost works, …

Member Avatar for Airshow
0
91
Member Avatar for alipica

I have no clue why this is happening. When I load a certain page on my site, my content loads twice. Basically, my content appears to flash once. I can't figure out what's going on, but it seems to deal with the following code. The page calls urlCheck(). [CODE] // …

Member Avatar for alipica
0
2K
Member Avatar for anabreu

I'm sorry about posting this again, but as I said I'm on a deadline, and I'm sure there's someone out there that can help me... I am using a dhtml "Image Slideshow", and I was really happy with I customized its layout to my needs, and it runs perfectly on …

Member Avatar for vsmash
0
106
Member Avatar for jbobfunky

I was wondering if any one can show me an simple action script example of how to implement a image gallery that has multi image category built from an xml file generate by php. I have successfully made an image gallery with, action xml, php, and mysql, but I'm having …

0
77
Member Avatar for beforetheyknew

Hi guys for my first piece of work on javascript i have to check a few html form questions which is provided. But im pretty clueless on how to do it, or even start it. First of all how would i check like a drop down menu had the right …

Member Avatar for alipica
0
205
Member Avatar for shahanshah
0
47
Member Avatar for team_ferrari22

Hi All, Do the DITA (Darwin Information Typing Architecture) supprots javascript? If supports..please guide us how to use javascript with DITA. Regards.

Member Avatar for harrierdh
0
60
Member Avatar for BDS_AT

Hi all, First time poster, but I'd like to ask a simple question in ASP.NET C#. I have a function that sends queries to an SQL Server. It takes a while, so I'd like to display the details to the user. Something simple, like "Sending x out of 12345 total …

Member Avatar for BDS_AT
0
119
Member Avatar for ausmaya

Hi, I have created a .gif image in photoshop,then i have linked the location in html coding.But i am unable to see that image in internet explorer.I am able to see a red crossed line.How to make that image to display??

Member Avatar for preetg
0
81
Member Avatar for alipica

This should be simple, but it's not working for me! The relevant code is beneath. This code is on my html page directly under the input field: [CODE] input = document.getElementById('hiddenInput'); var inputInt = parseInt(input.value); if (inputInt != 0) { setClick(inputInt); }[/CODE] (I've tested it to make sure it sees …

Member Avatar for vsmash
0
156
Member Avatar for MDanz

i want the div to be displayed where the mouse was clicked... whats wrong? [CODE]<head> <style type="text/css"> #layer1 { position:fixed; display: none; width:600px; height:auto; } </style> </head> <body> <input type="button" value="Button 3" onclick="setVisible();"> <textarea id="reply" name="reply">testing12345678910ffafaf</textarea> <div id="layer1"></div> <script type='text/javascript'> function setVisible() { var div = document.getElementById('layer1'); // put the …

Member Avatar for alipica
0
99
Member Avatar for MxDev
Member Avatar for lobstar

Hi, I wrote a small piece of javascript a while ago to add some text to a text box and mark it as read only if a check box was checked. If the checkbox was unchecked, the text would be removed and the field writable. It was working great until …

Member Avatar for lobstar
0
3K
Member Avatar for albertkao

How to store some strings at the client side for firefox, chrome & IE? This code works on firefox & chrome but does not work on IE - no alert window appears. [CODE] var key = "localorder"; localStorage.setItem(key, 'asc'); alert('localorder ' + localStorage.getItem(key)); [/CODE] This code does not work on …

Member Avatar for Airshow
0
75
Member Avatar for jasystweb

I am creating controls which are added to the page at run time. As these controls are added I separate them into a UL/LI list by injecting literals assigned as (<ul>, </ul>,<li>,</li>). The page in question uses a master page template. The ul/li function is called in the page_load event …

Member Avatar for jasystweb
0
253
Member Avatar for vijayzutshi

script type="text/javascript" function play(media){ document.getElementById('mediaplayer').innerHTML= 'object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"' 'type="application/x-oleobject" width="320" height="285"' 'param name="showControls" value="false"' 'param name="fileName" value="' media '"' 'embed type="application/x-mplayer2" width="320" height="285"' 'showcontrols="false" src="' media '"\/embed\/object' } /script div id="mediaplayer"/div ul id="menu" li a onclick="play(this.href);return false" href=""Source 1/a/li li a onclick="play(this.href);return false" href=""Source 2/a/l li a onclick="play(this.href);return false" href=""Source 3/a/l …

0
45
Member Avatar for albertkao

I use the Tablekit library and Prototype javascript framework on firefox, chrome & IE8. The columns in this table can be sorted by the Tablekit library. [CODE]<script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/tablekit.js"></script> <body> <div id="mainmenu"> ... </div> <div id="content"> <table class="sortable resizable"> <thead><tr> <th class="sortfirstdesc">ID</th> <th>Date</th> <th>Time</th> </tr></thead> </table> </div> …

Member Avatar for Airshow
0
374
Member Avatar for Thoaren

Hi, I'm pretty new in Javascript. I searched alot but didn't find any answer to my problem I have. What I want to do: - I have a cell A1 - I want the script to make a new cell B1 - After that I want the script to make …

Member Avatar for Graphix
0
101
Member Avatar for player_d

hey, i have a table with 10 rows: id | name | age | class. i need to make the headlines clickable for sorting . ex: if i press the "id" column then it will sort the rows descending and ascending. i need it to be most simple. it is …

0
60
Member Avatar for xylude

I am making a little forum and while trying to add the quote post functionality have come across a problem that has me stumped. Here is my js: [CODE] function addQuote(text) { var tArea = document.getElementById('forumReply_message'); tArea.value = text; } [/CODE] Here is sample HTML (one that doesn't work): [CODE] …

Member Avatar for xylude
0
83
Member Avatar for moobaa

Hi all.... Ok, so I've got 3 components, all working independently: 1) Simple HTML page 2) PHP Script (which produces 3 arrays) 3) Javascript (which processes 3 arrays) Now, I need to hook them all together through the HTML. The PHP should be called on the loading of the page, …

Member Avatar for NettSite
0
550
Member Avatar for aparnesh

How can I remove the URL information that is printed at the bottom of the page when a Web page is being printed ? Can this be done by Javascript or any programming method ?

Member Avatar for arvindreads
0
2K
Member Avatar for sassenach

Hi, I am new with jQuery. I copied an open source code for sending a contact us form using jQuery. You can see the form at Website at the bottom right side yellow box. The input fields are as follows: Name, Email, Tel, Comments. This is my JS file the …

Member Avatar for Airshow
0
150
Member Avatar for blur_guava

Hi everybody, I have this File Upload control, whereby the user is granted a limit of 5 uploads. And so, the user clicks on "Attach Another File", and decides to attach a file ONLY in the first File Upload control. My problem is, I want the user to be able …

Member Avatar for Airshow
0
318
Member Avatar for iAmLast

[B]FIREFOX and CHROME script problems?? [/B] in my code is a simple script that shows an error message if input value didnt meet the requirements. [U]the example is[/U] [I]register_form [/I] - name of the form [I]username[/I] = name of the input type text requirement is string must be greater or …

Member Avatar for alex.tepes
0
121
Member Avatar for PierlucSS

I'm currently working on some ajax polling stuff and I don't want do pass through all the process if nothing has changed in the xml file I'm using for my asynchronous process. However after each polling I want to set the value DateTime.Now, but cannot do it with [CODE]Request.Form[ "lastPoll" …

Member Avatar for PierlucSS
0
7K
Member Avatar for nl18663

Hello, i want to use jquery to make a fade in/ fade out menu / sub menu structure. the structure works, the only this is that when i hover from the topic to the corrisponding submenu the submenu fades out and back in. how can i stop that? the function …

Member Avatar for alex.tepes
0
470
Member Avatar for AnzJ

Hi Guys, I have an image set up, and when you left-click on it, the image closes. I was wondering if there is an onRightClick event or something like that, so I can disable the right-click menu? I'm trying to prevent people from being able to easily save the image. …

Member Avatar for gtugay
0
100
Member Avatar for anish.anick

Hi All, Please tell me how i can call a web service from an HTML page using javascript which works fine on both IE and fire fox.I was successful in calling a ASP.NET web service using javascript in Internet Explorer (using service.useService method).Unfortunately the service.useService method is not working in …

Member Avatar for kvprajapati
0
608
Member Avatar for Heinz Stapff

Running Login Validation that is causing problems. Client side 'onchange' of input id=customer email is not writting to <p> for each 'if' statement. Any help greatly appreciated. [CODE] var dbemailstr = ['heinzstapff@hotmail.com']; // emulate database email search var newemailstr = ['gloriamarks@prodigy.net']; // emulate add to databas email addresses var email …

Member Avatar for Heinz Stapff
0
116

The End.