15,127 Topics

Member Avatar for
Member Avatar for Saion

When i try to dynamically change the height of an iframe in ie through a java-script to match its content (a html page containing a flash movie), it doesn't resize the iframe at first, but when i reload the same page into the iFrame it resizes as planned, how come? …

Member Avatar for fobos
0
2K
Member Avatar for kidanr

Hello, I'd like to know how to make a div height maximum f.e. 200px. If the height goes above 200px it should come some text saying "View more" or something and then it expands. This I need because I have a page where I will post posts and if the …

Member Avatar for kidanr
0
83
Member Avatar for khurramraja

[CODE]<script language="javascript" type="text/jscript"> function showhide(layer_ref) { obj = document.getElementById(layer_ref); if (obj.style.display == "none") { obj.style.display = ""; } else { obj.style.display = "none"; } } function changepic_menu(arrow) { obj = document.getElementById(arrow); if (obj.src.indexOf("arrow_up.jpg") > 0) { obj.src = "../image/arrow_down.jpg"; } else { obj.src = "../image/arrow_up.jpg"; } } </script>[/CODE] this code …

Member Avatar for khurramraja
0
77
Member Avatar for nikc121

Ok so here is a good one. "Must display an image and three buttons. The buttons should be labeled 1, 2,3 and when pressed each button should changed the content of the image to that of a different image. This is due before MIdnight, and I have tried everycode I …

Member Avatar for Taywin
0
197
Member Avatar for steelshark

Hi, I was wondering if it is possible to create thumbnails automaticly from images when they are uploaded to the server?I would need a seperate file for the thumbnails... Does anybody have any clue of this?I was thinking in the direction of jquery but i dont know for sure :) …

Member Avatar for Taywin
0
80
Member Avatar for ivan3510

Hi! Sorry for my bad english! I want to make HTML editor (editor with tags, like this on daniweb) with tables. Here's the problem: If user writes [TABLE], I made that this replace with <table>. If the user write, eg. [TABLE:BORDER=1;WIDTH:300;], it will change this to <table border=1 width=300> Here's …

Member Avatar for ivan3510
0
85
Member Avatar for kesh1000

please can anyone tell me why this script doesnt seem to work.thankz [CODE]<script> function calculate (){ var age = document.getElementById('age'); var amt = document.getElementById('amount'); var plan = document.getElementById('plan'); var ben1 = document.getElementById('benefit1'); var ben2 = document.getElementById('benefit2'); var yrs = document.getElementById('length'); var ap = (amt.value/yrs.value)+Math.pow((100*Math.sqrt(age.value/(55*yrs.value))),2); document.write('annual premium'+ap); } function checkplan(){ var …

Member Avatar for kesh1000
0
88
Member Avatar for ivan3510

Hi! Sorry for my bad english! I want to make a function that will replace "[LINK=url]Some text[/LINK]" with "<a href=url>Some text</a>". I tried, but the code is too long. Is there any shorter code for this. Here's how I do this (but this code make only first [LINK] into <a …

Member Avatar for ivan3510
0
147
Member Avatar for djcrab

Help yet again guys. I'm having trouble getting the table underneath the <h3> tag "Delivery rates" to show in the right place. Also the "Delivery Rates" is not showing either. This is starting down at line 86. I've tried adding <p>/</p> elements as my book mentions but they do not …

Member Avatar for djcrab
0
98
Member Avatar for adand

I am having a problem sending my form to MySQL on my application page (when you click GameTime! it should send the data to a MySQL table.)-http://www.facebook.com/apps/application.php?id=157666347603790&v=app_157666347603790 It sends the form data here: [url]http://bit.ly/91oi88[/url] however, it just won't seem to work in facebook. Obviously there is something wrong with my …

Member Avatar for Airshow
0
178
Member Avatar for mduncan8

I am working on a website in ASP.NET and I need to run a JavaScript function on page load from a content page and I also have a user control that needs to have some JavaScript executed on page load. I'm new to JavaScript and I'm not completely familiar with …

Member Avatar for Airshow
0
209
Member Avatar for zero_sequence

hi to all... i want to be able to see which pages where visited and from how many users... (Un)fortunately i use rewrite rulez... so the actual url is not the real cfm file ex domain.com/toys/4857-toy-name/ is product_view.cfm?param=4857-toy-name So in a onrequestend.cfm i used the following code in order to …

0
84
Member Avatar for ShubhadaLitke

Hello all, I have same problem. in javascript i called php fun using <?php fun1()?>. it run successfully. But i want to pass variable to that function which is a value of input text box. i.e var tt=document.getElementById('cname'); and i want to pass that tt value to php function. How …

Member Avatar for Gilette
0
2K
Member Avatar for jimbennett57

I'm a newbie to SOAP, and have been searching for an answer with no luck. Hopefully someone can help me out here. I have a VB script which successfully retrieves a SOAP response (xmlhttp.responseText). I can see the response with WScript.Echo, save it in a variable or can save it …

Member Avatar for jimbennett57
0
579
Member Avatar for sunnyday2010

I have a ajax function implementation: when the user is on one site, the ajax call keeps checking the server every 5 seconds if there is a server url change. If there is, there will be a message displayed to direct the user to go to another site. when the …

Member Avatar for Taywin
0
141
Member Avatar for ivan3510

Hi! Sorry for may bad english! How to add a function that will add some text in textarea, when someone clicks on button, where the cursor is? (Like here, on daniweb textareas!) eg. There is bold button! The user clicks on it, and the text "[BOLD][/BOLD]" writes where curser/caret is. …

Member Avatar for ivan3510
0
130
Member Avatar for ivan3510

Hi! Sorry for my bad english! How to delete some text with javascript? Example: I have this in textarea: [LINK=http://www.someurl.com]Link - click[/LINK]. I want that the text between "[LINK=" and "[/LINK]" deletes (output will be "[LINK=[/LINK]"). How to do that?

Member Avatar for ivan3510
0
78
Member Avatar for philmetz

I have the following code that should add a new item to the database table but it doesnt seem to be adding? [CODE] <html> <head> <title>Using Default Checkbox Values</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"> </script> <script type="text/javascript" > $(function() { $(".submit").click(function() { var name = $("#name").val(); var username = $("#username").val(); var password …

Member Avatar for hielo
0
133
Member Avatar for divyakrishnan

Any body knows how to close a firefox new tab window using javascript by clicking a hyper link? I used the following code <a href="" onclick="window.close()">Close this window</a> <A href="javascript: self.close ()">Close this Window</A> It works for new windows .But it will not works for firefox new tabs..

Member Avatar for Taywin
0
90
Member Avatar for nwright

Hi everyone, I'm new to the site and a newbie to js. I have been struggling to find the right solution to validating a username in a form to make sure it is unique. I don't want to use Dreamweaver's validate username because I want the error to appear on …

Member Avatar for Taywin
0
195
Member Avatar for QWaz

Hi, I'm a real javascript newbie, good with php. I am trying to utilize onmouseover, and onmouseout with div's and text. the goal is: when you hover over some text in a <div> it displays other text and then if you hover off it, it keeps the text there. It's …

Member Avatar for Airshow
0
262
Member Avatar for Roy Murphy

Hi everyone, Are there any IE9 quirks workarounds yet? If there are a few clever (and small) workarounds for this could someone please post me a link? As a quick fix I was going to add an 'if' statement to detect IE9 and work in 'mozilla' mode, but my brain …

Member Avatar for Roy Murphy
0
146
Member Avatar for abstrand

I am trying to create a form that will allow a user to update data in a mysql database. I want to call up the record being updated by the use of a select-option list at the top of the form. I have the code necessary to bring up the …

0
83
Member Avatar for Roy Murphy

Could someone please help with an issue that's preventing my video from showing in IE8. It play's on all other IE versions...and plays fine in Firefox & Chrome. [code]<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" width="768" height="466"> <param name="movie" value="../media/video/anassa.swf"> <param name="quality" value="high"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="True" /> <embed src="../media/video/anassa.swf" quality="high" …

Member Avatar for Roy Murphy
-1
162
Member Avatar for mcNXT

Hi I want to upload and retrieve image using [B]JSP[/B] and the database am using is [B]PostgreSQL[/B],after storing image in byte streams and want to retrieve the image and i want to store the image in the hard disk and then i want to display the image by specifying the …

0
47
Member Avatar for daved83

Hi everyone. I'm brand new to Ajax so forgive me for the stupid question! I'm trying to populate a triple dropdown menu based on [URL="http://roshanbh.com.np/2008/01/populate-triple-drop-down-list-change-options-value-from-database-using-ajax-and-php.html"]Roshans code[/URL] The first dropdown populates the second one fine but when I clidk on the second it populates itself instead of the one below! I …

Member Avatar for nicosa
0
250
Member Avatar for MoreBloodWine

Test Page: [url]http://www.eojmarket.com/index.php?pag=26[/url] Code below: <script language="JavaScript"> function function1(){ window.scrollTo(0,265); } </script> <input type="button" value="Go" onClick="function1();"> Question: Is it possible to get rid of the button and have it scroll to 0,265 on page load ? Comment: <body onload="function1();"> doesn't appear to work.

Member Avatar for MoreBloodWine
0
104
Member Avatar for BigFormat

Hello, I've written down a small JS function 'checkForm()' to validate the input in a form and alerting, before actually sending data to the PHP server-side script. In my form, in addition to common input text fields I've got two buttons: the first called "ADD" to submit data and "CANCEL" …

Member Avatar for BigFormat
0
182
Member Avatar for ryoonnet

Hi, I am trying to upload multiple files using file input. And I am able to do that using "multiple" attribute of input type file. I can not use file API as I am using python on server side. So after user has selected the files, I want to access …

Member Avatar for Airshow
0
273
Member Avatar for suhas.sonavane

The End.