Search Results

Showing results 1 to 40 of 68
Search took 0.01 seconds.
Search: Posts Made By: Fungus1487 ; Forum: JavaScript / DHTML / AJAX and child forums
Forum: JavaScript / DHTML / AJAX 5 Days Ago
Replies: 3
Views: 303
Posted By Fungus1487
As a side to this its great to learn from the ground up but save yourself some time and use a javascript library. jQuery (and many others) can achieve what you are trying to do in 5 lines.

...
Forum: JavaScript / DHTML / AJAX 5 Days Ago
Replies: 1
Views: 336
Posted By Fungus1487
Having used jQuery alot and spry very little I am perhaps biased towards jQuery but from what I have seen and used, Spry seems to be Adobe's play on providing rich "widgets" or controls via...
Forum: JavaScript / DHTML / AJAX Jun 26th, 2009
Replies: 3
Views: 1,659
Posted By Fungus1487
No problem, if your all sorted you can mark the thread as solved.
Forum: JavaScript / DHTML / AJAX Jun 24th, 2009
Replies: 3
Views: 1,659
Posted By Fungus1487
1. Don't use ID like you do. ID's are meant to be unique but your first section use "qa1" and "qa2" twice in both anchors and is then used in the divs as part of the second section.

2. You dont...
Forum: JavaScript / DHTML / AJAX Jun 19th, 2009
Replies: 2
Views: 595
Posted By Fungus1487
You will need to randomly generate numbers and check that they have not already been displayed. The below does this by continuosly looping until it has found the total range of values. Each loop...
Forum: JavaScript / DHTML / AJAX Apr 22nd, 2009
Replies: 7
Solved: String
Views: 880
Posted By Fungus1487
i think you mis interpreted my response then to check if a string contains a string in javascript you want the following.

function stringContains(string, value) {
// To make this case...
Forum: JavaScript / DHTML / AJAX Apr 22nd, 2009
Replies: 7
Solved: String
Views: 880
Posted By Fungus1487
you cant directly as they are two seperate languages. you could output content to the page using a script block somthign like the following

string g = "ZOMGGGG";
bool s = g.contains("GGGG");...
Forum: JavaScript / DHTML / AJAX Apr 18th, 2009
Replies: 2
Views: 1,720
Posted By Fungus1487
you would do the following. Hope it helps.

<html>
<head>
</head>
<body>
<table id="countit">
<tr>
<td class="count-me">12</td>
...
Forum: JavaScript / DHTML / AJAX Apr 18th, 2009
Replies: 1
Views: 512
Posted By Fungus1487
seems fine but a tip is dont use document.writeln.
try having a content area in the page e.g. a "<div>" then give this element and ID and set its innerHTML property to the text you want.
...
Forum: JavaScript / DHTML / AJAX Apr 4th, 2009
Replies: 5
Views: 1,124
Posted By Fungus1487
why use javascript for this ? CSS is perfectly capable of doing this without the scripting overhead.

/* Example changing a td elements background colour */
td {
background-color:transparent;...
Forum: JavaScript / DHTML / AJAX Apr 4th, 2009
Replies: 2
Views: 1,464
Posted By Fungus1487
just add a function to the onload method of the document this will fire when the page has finished loading all external content. You can use this then to hide your gif after the page is done.
...
Forum: JavaScript / DHTML / AJAX Mar 25th, 2009
Replies: 3
Views: 1,122
Posted By Fungus1487
why not just use an ID

document.getElementById('myDiv').style.background = 'url(' + url + ')';

if your deperate to use classes and write your own code you will have to perform something like so...
Forum: JavaScript / DHTML / AJAX Mar 22nd, 2009
Replies: 3
Views: 1,122
Posted By Fungus1487
use a javascript library with CSS selectors such as jQuery. You can then perform a css selector query to get the node your after. Example

$('.dc').filter('.m1_pad').css('background-image', 'url('...
Forum: JavaScript / DHTML / AJAX Feb 1st, 2009
Replies: 9
Views: 3,240
Posted By Fungus1487
You forgot to set the global 'wasOkPressed' flag after someone has selected Ok in the confirm dialog, this is how it knows whether to keep on validating. good luck.
Forum: JavaScript / DHTML / AJAX Jan 24th, 2009
Replies: 9
Views: 3,240
Posted By Fungus1487
Following code should set you on the right path.


var wasOkPressed = false;

// Create an array of your checked controls
var controlArray = [ '<%= T_selector.ClientID %>', '<%=...
Forum: JavaScript / DHTML / AJAX Jan 21st, 2009
Replies: 3
Views: 1,303
Posted By Fungus1487
no you cant. Microsoft have made it that way.

At least not through javascript.

If your using a server side language you could change the page headers returned to the client which would force a...
Forum: JavaScript / DHTML / AJAX Jan 19th, 2009
Replies: 9
Views: 3,240
Posted By Fungus1487
i dont quite understand what you mean by "Basically I need to validate only once, if the user click OK then I don't want the js continue validate additional controls even if it is '&&'." so this...
Forum: JavaScript / DHTML / AJAX Jan 18th, 2009
Replies: 9
Views: 3,240
Posted By Fungus1487
The ID you give the ASP control will change at runtime.


You need to change your hardcoded ID string to change at runtime using.
(document.getElementById('<%= T_selector.ClientID...
Forum: JavaScript / DHTML / AJAX Sep 21st, 2008
Replies: 8
Views: 1,598
Posted By Fungus1487
are you running this locally on your computer or via a website ?

if its locally you will recieve this error through IE to disable it. Set your security settings to low/intranet in IE.
Forum: JavaScript / DHTML / AJAX May 14th, 2008
Replies: 8
Views: 5,056
Posted By Fungus1487
is the function in the <head></head> area of the html document. the online example i put up works fine in both IE and firefox and the code has just been dragged from that.
Forum: JavaScript / DHTML / AJAX May 13th, 2008
Replies: 8
Views: 5,056
Posted By Fungus1487
yes that may just work. but the increased time in doing this loop may take just as long as your original solution.
Forum: JavaScript / DHTML / AJAX May 13th, 2008
Replies: 8
Views: 5,056
Posted By Fungus1487
i chopped up your code and used it with some big pics of my band.

here is the result resize example (http://www.designdotworks.co.uk/testing/image%20resize/resize.html)

my connection is fast...
Forum: JavaScript / DHTML / AJAX May 13th, 2008
Replies: 8
Views: 5,056
Posted By Fungus1487
why not use the "defer" attribute of the script tag?

<script type='text/javascript' defer='defer'>

you could also add an onLoad event handler to run the script once the browser has loaded all...
Forum: JavaScript / DHTML / AJAX Feb 25th, 2008
Replies: 7
Views: 5,192
Posted By Fungus1487
There is a problem with your javascript code somewhere as "document.getElementById" is perfectly fine for obtaining a table element with an ID.
Forum: JavaScript / DHTML / AJAX Feb 25th, 2008
Replies: 7
Views: 5,192
Posted By Fungus1487
Forum: JavaScript / DHTML / AJAX Jan 15th, 2008
Replies: 8
Views: 5,684
Posted By Fungus1487
yep.
that is the easiest way ive found to style in these situatuions
Forum: JavaScript / DHTML / AJAX Jan 14th, 2008
Replies: 8
Views: 5,684
Posted By Fungus1487
in short
you cannot.
not to the extent some people like to change their form buttons.

best bet is to create another button with an onclick event to press the input type="file" which should be...
Forum: JavaScript / DHTML / AJAX Jan 3rd, 2008
Replies: 3
Views: 1,169
Posted By Fungus1487
but you still wont be able to align PART of the text differently to another part. Not in the same textbox anyway.
Forum: JavaScript / DHTML / AJAX Dec 11th, 2007
Replies: 10
Views: 5,513
Posted By Fungus1487
sorry what i meant was to a user it would appear as www.domain.com/page.html instead of say .aspx
Forum: JavaScript / DHTML / AJAX Dec 11th, 2007
Replies: 5
Views: 3,906
Posted By Fungus1487
well those were the basics which you should be able to adapt upon. for my efforts ive posted it up for all to see.

http://www.daniweb.com/code/showsnippet.php?codeid=794
Forum: JavaScript / DHTML / AJAX Dec 11th, 2007
Replies: 0
Views: 8,130
Posted By Fungus1487
I browsed google and found nothing so thought i would put my efforts up here.
hope this all helps.

this function will allow you to return the number of days between two dates minus saturdays and...
Forum: JavaScript / DHTML / AJAX Dec 10th, 2007
Replies: 10
Views: 5,513
Posted By Fungus1487
you can technically fake the interaction if thats what he means.

AJAX uses javascript to interact with a server side page. you dont actually see the page interacting with the javascript so it...
Forum: JavaScript / DHTML / AJAX Dec 10th, 2007
Replies: 5
Views: 3,906
Posted By Fungus1487
var date1 = new Date();
var date2 = new Date();
var diff = new Date();

diff.setTime(Math.abs(date1.getTime() - date2.getTime()));

return (diff.getTime() / (1000 * 60 * 60 * 24));


theres...
Forum: JavaScript / DHTML / AJAX Nov 22nd, 2007
Replies: 13
Views: 3,523
Posted By Fungus1487
if were simply talking about web design then again i agree with SOS but for web application terms or other such i stand by the fact that popups can be incorporated to enrich a users experience.
Forum: JavaScript / DHTML / AJAX Nov 22nd, 2007
Replies: 1
Views: 2,710
Posted By Fungus1487
Forum: JavaScript / DHTML / AJAX Nov 21st, 2007
Replies: 13
Views: 3,523
Posted By Fungus1487
i agree with SOS that if you wish to do this without opening a popup then simply append your values to the path of the page calling then add an onload event to that page that checks to see if these...
Forum: JavaScript / DHTML / AJAX Nov 21st, 2007
Replies: 13
Views: 3,523
Posted By Fungus1487
the implementation i stated opens a popup and passes 2 values throught to a function located on that page. are you doing the opposite and trying to obtain two values from the parent of the current...
Forum: JavaScript / DHTML / AJAX Nov 21st, 2007
Replies: 3
Views: 1,141
Posted By Fungus1487
where are you pulling this information from ? is it hard coded or ar you using a server side script i.e. php, asp
Forum: JavaScript / DHTML / AJAX Nov 21st, 2007
Replies: 3
Views: 1,141
Posted By Fungus1487
i dont quite understand are you trying to do? dynamically create data in your first column based on what the user presses ?
Forum: JavaScript / DHTML / AJAX Nov 21st, 2007
Replies: 13
Views: 3,523
Posted By Fungus1487
1. open your new page window (make sure you save the window to a variable i.e. 'win')
var win = window.open(....);
2. from existing page check the new window youve opened to see if it is finished...
Showing results 1 to 40 of 68

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC