17,114 Topics

Member Avatar for
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
87
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
90
Member Avatar for caitlins5

Hello, I have an asp form page that works in IE but I receive an error in Firefox that says: "There was an error on this page. Error description: undefined Click OK to continue" Here is the code of the page below: [CODE] <html> <head> <script src="/backoffice/includes/jquery-1.3.2.min.js"></script> <script src="/backoffice/includes/jquery.validate.js"></script> <script …

Member Avatar for ArtistScope
0
202
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
151
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
100
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
181
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
214
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
86
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
584
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
144
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
133
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
82
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
134
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
91
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
199
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
263
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
149
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
86
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
166
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
50
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
252
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
105
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
186
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
276
Member Avatar for suhas.sonavane
Member Avatar for mikeandike22

I am trying to collapse a sidebar with Jquery I have accomplished this with a simpler example but would like to incorporate it into a more complex document here is the code [CODE] <aside id="leftColumn" class="left sideBar"> <!--Thing I want to Collapse--> <nav class="leftNav"> <ul class="align_right indiBtn"> <li class="dashboard"><a href="#" …

Member Avatar for mikeandike22
0
199
Member Avatar for travist

Hey all I'm a student and I need to check a div's class. This seems like it should work but it's not... Help please! :) <script type="text/javascript"> function findout() { alert('function works'); var var1 = document.getElementById("div1").className; if (var1.value == "special") { alert("div1 has special as a style"); document.getElementById("div1").className = ''; …

Member Avatar for Airshow
0
105
Member Avatar for serkan sendur

i searched google to do this and mostly i found this solution: [CODE]mydiv = document.getElementById('FirstDiv');while ( mydiv.firstChild ) mydiv.removeChild( mydiv.firstChild );[/CODE] instead of doing such iterations, i basically did this and it worked successfully: [CODE]document.getElementById('FirstDiv').innerHTML ="";[/CODE]

Member Avatar for asdasdasdasdfsd
0
121
Member Avatar for eswar.aspire

hello, Please any one send me sample code,... 1)How to embed the flash movie in iframe using swfobject in javascript? 2)How to send parameters from Iframe loaded with flash to that flash movie? With regards, Eswaran Saravanan, University west, sweden.

Member Avatar for eswar.aspire
0
191
Member Avatar for jbhorne

I'm having a problem with a navigation map that uses javascript and CSS to shift a sprite. The sprite image is located at [url]www.eagleonedims.com/images/navmap.jpg[/url]. On each <li> rollover, I need the ENTIRE sprite shifted by 88px to account for the overlapping effect. The page in question is located at [url]www.eagleonedims.com/index2.php[/url]. …

Member Avatar for jbhorne
0
175
Member Avatar for router.exe

I'm trying to display a progress bar or animation for an update panel that takes a while to load. The update panel is housing a chart that uses multiple chart areas, and the code behind is building these chart areas during the update. I'm not sure what I'm missing using …

Member Avatar for router.exe
0
2K
Member Avatar for sharonig

Hi, I have an input element on a form. When I open a popup form and then close it, I try to put the focus back on my input element by using the focus() method. However, that fails and it doesn't get focus. When I press tab to get out …

Member Avatar for Taywin
0
89
Member Avatar for kiran@kumar

hi friends iam kiran i have a doubt in javascript. In asp.net we have a flushing concept.it works fine. But i want that same flushing concept in javascript. Exact Requirement: From my database i got 1000 records to javascript function. then here i am open one js window and iam …

Member Avatar for kvprajapati
0
68
Member Avatar for persianprez

I'm sure this is simple but here is what I need to do: I want to change a variable within the source url. Heres an example of what I'm trying to say: [CODE]<script type="text/javascript" src="url.com?lang=en&X=word1&;"></script>[/CODE] This works fine, but I want the variable X to be elsewhere, like this: [CODE]<script …

Member Avatar for persianprez
0
343
Member Avatar for yopirates

hey guys! onload function is working in window.open! but it is not working in .showmodaldialog [CODE]newwindow2=window.open('app.html','app','Width:700;Height:350; modal:true;'); newwindow2.onload=function() { alert("hello"); } [COLOR="Green"]This works [/COLOR] newwindow2=window.showModalDialog('app.html','app','dialogWidth:700px;dialogHeight:350px;dialogTop:200px; dialogLeft:200px;resizable=no;'); newwindow2.onload=function() { alert("hello"); } [COLOR="Red"]Not working [/COLOR] [/CODE]

Member Avatar for yopirates
0
953
Member Avatar for shadiadiph

is there any easy way to set a cursor to a div so that you can type in a div onclick?

Member Avatar for lambing
0
683
Member Avatar for andrewliu

Hello, I have a button that counts the number of clicks. when it is clicked, number goes up, and the image disappears. but I want it to show the image again when it is clicked, but can't be clicked after the first time is clicked. I already have this script …

Member Avatar for andrewliu
0
129
Member Avatar for dennishall

Hi: I embedded my Zen Cart store into my website. I have managed to get it working in IE by using the <OBJECT> tag. Why should I do this you ask? My website uses AJAX to load the pages into a div AND my storefront is not in the same …

Member Avatar for dennishall
0
112
Member Avatar for basilix

Hi... I'm new here! does someone know how can i get a javascript variable from jsp? I've tried some ways but no one works! :icon_sad: please help!

Member Avatar for basilix
0
274
Member Avatar for djcrab

I'm in need of some more help for something quite simple. All I'm trying to get to work is the (onmouseover) portion of the below. I'm sure there is a typo somewhere that I'm not seeing. I've got to quit doing homework when I'm exhausted. Just a little hard after …

Member Avatar for Troy III
0
117
Member Avatar for something78

Hi, I am working on a robot project, that is required to create a website to control the robot via serial port.. The website is plainly html, no linking to database is needed... I have no idea how and what language to use and can JavaScript communicate with serial port? …

Member Avatar for Taywin
0
128
Member Avatar for filch

I am still learning jquery but I am wondering why this code does not work. I have a select field called item_name and a hidden field called amount. Based on the selection in item_name, I want to set the value of the hidden field (amount) to a set value. For …

Member Avatar for hielo
0
114
Member Avatar for MartinRinehart

There is Firebug for Firefox and some very interesting developers toolsets, such as Dragonfly for Opera and Google's Developer Tools. Even MSIE's Developer Tools look like they have some possibilities. But is any of this documented, anywhere? All these seem less straight forward than debuggers I've used in the past.

Member Avatar for Taywin
0
92
Member Avatar for george61

I need javascript to trigger the combination of ctrl + minus. Is it possible. I need this because the design of the webpage I'm working on is looking much better at 83 % zoom which couldn't be achieved by CSS zoom property in mozzila firefox.

Member Avatar for Taywin
0
232
Member Avatar for herosuke

hi I need help regarding my issue on my site [url]http://citiguide.ph/home/[/url] try to click on the bullet of • Accommodations (1) in the categories it will show the sub categories the problem is when you click the main link it doesn't work it should go directly on the particular url. …

Member Avatar for Taywin
0
54
Member Avatar for hunter8

Keep getting following page error on my laptop but not on my desktop can anyone help . unable to get complete web page Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR …

Member Avatar for Taywin
0
90
Member Avatar for DrViolet

I have an ajax paginate part in my php file. I don't need to have every page remembered by the back button, but at least the last visited. In Firefox this works great. For example, I go to page 5, ajax changes the content and page number 5 is highlighted. …

Member Avatar for Airshow
0
102
Member Avatar for thejoej

I use a search engine on my web site [url]www.barmirrors.com[/url] I got it from Search Site Pro. It opens the search results in the same window thus making it hard to get back to where you came from. I would like the search results to be dispalyed in a new …

Member Avatar for thejoej
0
206
Member Avatar for tldorr

I have built what I think is a nice contact form. I want to add a cookie to this form so that if a visitor has already completed this form, the browesr recognizes the user and sends them to a page that states they have already filled out this form. …

Member Avatar for tldorr
0
107

The End.