575 Posted Topics
Re: ...as long as the string is always a valid CSS property; "95px", "95%" "95pt" etc; you shouldn't need to use eval atall. You're eval-ing putting quotes around the value of a var; so the eval will return an object of type string; the var in that example is already a … | |
Re: I think you should put more information about the game on a link from the frontpage - maybe explain how a user plays, what the experience is like, etc. Certain people will not provide their email address without knowing why they're giving it and whether or not it's worth it.. … | |
Re: replace <sequence> with <choice>, and use the attributes 'minOccurs="0" maxOccurs="unbounded"'. Take out the maxOccurs on each of the potential children in the choice. Something like this: [code="XML"] <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="building"> <xs:annotation> <xs:documentation>a building</xs:documentation> </xs:annotation> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="window" > <xs:complexType> <xs:attribute name="state" … | |
Re: She seems to have massive fonts on her window title frames, and on the text of the page itself. Look at the size of font for the title bar on the Firefox window. I'm gonna go out on a limb here, and assume that she has some need or desire … | |
As title, I uploaded an image here: [url]http://www.daniweb.com/forums/thread91317.html[/url], as a PNG. Looks ok on preview, but, checked it in fullscreen view, and it looks strange, only 10% of the image is visible, the rest is messed up: [url]http://www.daniweb.com/forums/attachment.php?attachmentid=4191&d=1191368633[/url]. Uploaded again, thinking it might be a result of compression, as a … | |
![]() | Re: Coding 'for' any browser is as easy as coding for any other browser; once you learn the discrepancies of said browser. The standard is stubborn because it's a standard...! As a designer; you don't have to adhere if you don't wish to. It's best to only use the subset of … |
Re: Are you escaping the quotes ( " ) ? should be [inlinecode]<script type=\"text/javascript\">window.opener.location.reload(); </script>[/inlinecode] - if you're putting it in a doublequoted sring; which it appears you are, looking at the last 2 characters.. | |
Re: The first and second and third documents are equivalent; only in terms of the hierachal relationship between nodes. They are not by any means equal, and depending on the actual XML language they belong to, might not be considered equivalent semantically; nor are they necessarily equivalent in terms of hierachy … | |
Re: Er.. yeah. Use the sure-fire, well tested, unecessary to even implement behaviour of a standard input element. If you MUST reimplement the behaviour of an input yourself, reimplement it entirely, and don't use the standard input as a base; in that way, you can easily control and query the cursor … | |
Re: How are you drawing the sphere; are you generating the vertices and texture coordinates manually? What is the projection method of the world texture you're using? A projection like this is easy to map: ( [url]http://arstechnica.com/reviews/4q00/macosx-pb1/images/earth-map-huge.jpg[/url] ), there are other projection types though.. Some of them are easy, some of … | |
Re: Quite alot if you want the windows forms to actually open from a page or link on a user's web browser. You'd have to either; convert the VB standalone application to an ActiveX application, and use that on the webpage, but be warned, clientside ActiveX only works on Microsoft's web … | |
In light of X(ML)HTML superceeding (SGML)HTML in most applications; I propose that the old-style unterminated <daniweb> tag, daniweb's logo, have an appropriate end tag. See attached. | |
Re: There is nothing specific about blogs that generates more traffic. Unless you have something interesting to say and enough interested people to visit frequently; a blog will generate no more or less traffic than any other site. Things like RSS are only useful if people actually care enough to 'watch' … | |
I'm working on a C++ module to read wavefront OBJ files; these are text files with many lines with either 2, 3, or more integer or floating point numbers; separated by spaces or tabs. It's not always possible to know how many numbers there will be in a single line … | |
![]() | Re: PHP, shtml, ASP etc generally have no requirements for client machine settings, Javascript is more 'risky' than any of these, since it is dependant on client settings. RSS is just XML; so you could style it directly. Yep, directly. XML can have CSS style. I've never done it, but it … |
Re: For this game, I'd have a cGrid with arrays (or similar) of cTiles, each with a cImage and some flags indicating solidity. That way, your walls are just tiles with different images and a boolean state solid = true. I'd subclass cTile to cSprite and cItem. I'd subclass cSprite to … | |
I'm working with a strange schema of my own invention, it has a requirement that certain structures can only contain other structures; but also that those structures can contain 'filters' that optionally sit between structures-in-structures, i.e, this would be a valid document fragment: [code="xml"] <entity> <material name="mat1"> <texture component="ambient" src="somepng.png"/> … | |
Re: The URL of the document that the browser is currently viewing is in the property [inlinecode]window.location.href[/inlinecode] | |
Re: [quote="Fungus1487"]i have been using this practice for years but have come across a problem. using '#' will refresh the view of the page (thus if having scrolled miles down a page, resulting in a lovely jerk back to the top)[/quote] Try: [inlinecode]<a href="#" onclick="some_function( );[B]return false;[/B]" />[/inlinecode] I haven't tested … | |
Re: An Internet SMS gateway is just a connection between the TCP/IP network and the GSM network. If you access it using an email to a mobile service provider, your gateway is on the machine that collects the email and forwards it onto the SMS user via the GSM network. If … | |
Re: [QUOTE=autocrat;432395]Alternatively, get rid of the tables and use DIVS+CSS. You will probably end up using 1/4th less code, and find it much much easier to see problems and make alterations.[/QUOTE] To rephrase that to be accurate rather than emotive: you [I]might[/I] end up using a 1/4 less code, you [I]might[/I] … | |
Re: [quote="pedramphp"]because you have made the input button after the head tag you can not use the script in the head so you have to write the code after the input button , another problem you had you have to use disabled instead of disable[/quote] Or use the body onload handler … | |
Re: Use the indexOf() method of the string object: [code="Javascript"] var string_a = "ABCDEF"; var string_b = "DEF"; var iof_b = string_a.indexOf( string_b ); if( iof_b == -1 ) { alert( "Cannot find the string " + string_b + " in " + string_a ); } else { alert( "Found the … | |
As title; unless there's already a way: [code="HTML"] <html> <head> <script type="text/javascript"> function myfunction( ) { alert( "Hello, World!"); } </script> </head> <body> <p>Some HTML code</p> <img onclick="myfunction( );" src="some_image.gif"/> </body> </html> [/code] [code="Javascript"] <html> <head> <script type="text/javascript"> function myfunction( ) { alert( "Hello, World!"); } </script> </head> <body> <p>Some … | |
Re: Why on earth would you want to do something so outright annoying? If I click close, I want closed. No, there isn't an easy away to do this. You can catch the body "onunload" javascript event, and run code there; but it doesn't mean the same thing in different browsers. … | |
Re: strictly, you can't. browsers seem to have their own rendering order, and this can change depending on the document type of the page being rendered. you can 'hide' a page's content until the page raises the 'onload' event, which should be done when the page has been fully 'loaded' into … | |
Re: Are you getting a compiler error or a runtime error? I get a compiler error if I try to build that: [code="C?"] if(SDL_SetColorKey(bmp, SDL_SRCCOLORKEY | SDL_RLEACCEL, SDL_MapRGB(bmp->format, 0, 0 ,0)) == -1) //<----THERE SHOULD BE AN OPENING BRACE fprintf(stderr, "Warning: colorkey will not be used, reason: %s\n", SDL_GetError()); } //<---- … | |
Re: If you leave the index.html page out of a folder, on some servers, with some configurations, it does that for you. Admitadly, you might not want the default index page (it's ugly ), or your server might not support it, or it might be disabled. The most controllable way would … | |
Re: [quote="MidiMagic"]Internet Explorer allows some JavaScript statements to work correctly without semicolons, but other browsers do not. So IE cheats. Don't write your code to rely on IE quirks.[/quote] IE is correct; according to the 'standard' semicolons after javascript statements are optional. Or, as I just read; 'automatically inserted by the … | |
Re: ...Perl kicks PHP's scrawny unmanageable a$$... But both are inperfect for different reasons. C++ is rule for web applications; not easy to use admitadly, it doesn't natively have the text manipulation features of Perl, nor the huge library of builtin nonsensically named functions as PHP, but if you're gonna write … | |
Re: try something like this: [code] object.filters.alpha.opacity+=direction*delta; object.style.MozOpacity+=direction*delta; [/code] + other additions where neccessary; [B][object].style.MozOpacity[/B] is the JS property though. Also, for style attributes it's not usually advisable to work incrementally (i.e. += x )... it will probably be ok in this case, to be honest, but I try and stick … | |
Re: - Buy a mobile phone with WAP and use that in school. [B]or[/B] - If you have a legitmate educational reason to use a site, ask why it's blocked and if it can be un-blocked. [B]or[/B] - I won't be held accountable for the type of advice I'd give otherwise, … | |
Re: er... who's your target audience. will they be using IE5? you ( should ) know your target audience better than anyone. i wouldn't design for IE5. It's not up-to-date with modern standards, and it'll pull your work back into the dark ages. That said, it doesn't hurt to check code … | |
Re: Simply allow the user to donwload the document rather than showing it in a popup window. A good browser will give an option; for the user to either save the file, or open it; when one clicks a link like: [url]http://mysite.tld/mydocument.doc[/url] Opening the document should open it in the registered … | |
Re: I'd be up for it, t'would be a laugh. I live in Sowf Eas' Lund'n. (Warning for people [B]not[/B] from South East London, that [B]is[/B] how I talk) I'm free any date after tomorrow. | |
Re: this site lists some downloads for old versions: [url]http://www.oldversion.com/program.php?n=msie[/url] however. your windows xp+ infected computer might not allow you to install an old ie while you have a new ie without removing the existing ie, and you cannot remove an ie version less than ie6, since xp relies on ie6 … | |
Re: C++ with OpenGL is joyful. My dreams are powered by that combination. But, it depends what you mean by 'game' really. One could write tic-tac-toe in PHP; one ( or more ) could write Quake 3 in C++ with OpenGL. You can get OpenGL for Python, and other languages probably.. … | |
Re: Sometimes you can do things that could be done with tables with CSS instead; sometimes you can't, or it just becomes close to a waste of time trying (if you find your almost para-implementing tables with CSS + javscript, you're certainly wasting your time). i guess the thinking is that … | |
Re: I'm working on an XML game engine at the moment ^_-.. I'm allowing as much as possible ( objects/object traits, map layout, hopefully objectives [ basically everything except binary graphics and sound ] ) to be defined and linked up using XML.. In this case; the XML becomes a sort … | |
<iframe src="http://fusiongroups.net/test.html" /> I noticed this a while back... it seems that any html in the first part of the body of a message gets interpreted in that little preview box that shows the first part of a thread when you mouse over the title in a forum view... is … | |
Re: Hybridize? [B]<a href="#" onmousedown="[COLOR="Red"]changeImages('topevents', 'images/topevents-over.gif'); return true;[/COLOR]" onmouseup="[COLOR="Red"]changeImages('topevents', 'images/topevents-over.gif'); return true;[/COLOR]" onmouseout="[COLOR="Green"]MM_startTimeout(); [/COLOR][COLOR="Red"]changeImages('topevents', 'images/topevents.gif'); return true;[/COLOR]" onmouseover="[COLOR="Green"]MM_showMenu(window.mm_menu_0728010700_0,0,49,null,'topevents');[/COLOR] [COLOR="Red"]changeImages('topevents', 'images/topevents-over.gif'); return true;[/COLOR]">[/B] [I]I haven't used 'code tags' for a good reason.[/I] [B]Note: [/B]You need to make sure that where more one statement ( a statement in javascript is terminated by a … | |
Re: To see if cookies are enabled; try and set a cookie and then try and read it back. If you can't, cookies are disabled. To see if javascript is available and the version, try and use some javascript; ( [url]http://javascript.internet.com/user-details/javascript-version.html[/url] ) - bearing in mind that javascript version does NOT … | |
Re: Yes. Providing it is within a container with a fixed size. If the table is a direct child of the body element; apply CSS attribute: height:100% to the table, and also to the body and html elements to meet the above criteria. See the first response to this thread: [url]http://www.daniweb.com/forums/thread26630.html[/url].. … | |
Re: You can make CSS files server parsed... Either as SSI with an Apache htaccess directive, or using some other server language to generate the CSS file automatically. You can include arbitrary text through CSS using the 'content' property in newer browsers; i.e: [code="html"] <html> <head> <style type="text/css"> .placeholder { content: … | |
Re: ...if you want to write a hitcounter that records hits from any and all users; you cannot use Javascript - it can't write data to anywhere except cookies, which are unique to each user's browser. so, you'll have to use some serverside application/script/method to record data permanantly at your server. … | |
Re: Why not use a table? That's what tables do well; that's not what two unrelated elements do well without some javascript hacks. If you fixed the height on the two columns' mutual container and set both of their heights to 100% it might work... But if you're using floats and/or … | |
Re: [B]:stymiee>[/B] [inlinecode]<form action=mailto:your@email.address method="POST" enctype="text/plain">[/inlinecode] >_< messy and it's not just a case of being unable to modify data : most browsers will dump you to a default mail client (if one exists) with (at best) the form data in the message body. (assuming that that default mail client is … | |
Re: I'm assuming, not knowing JSF atall, that you're trying to refer to some element created by this line... [code="JSF"] <h:inputHidden id="saveMessage" value="#{addEditController.successfulSave}"/> [/code] and, again, not knowing JSF, I'm guessing that will resolve to: [code="HTML"] <input type="hidden" id="saveMessage" value="some_value" /> [/code] In which case; why are you using: [code="Javascript"] document.getElementById('a2z:saveMessage') … | |
Re: If Javascript's object lifecycle is anything like Java's; objects created using 'new' stay resident even after they go out of the scope of the function that called new, provided something else is referencing that object somewhere.. perhaps, the XMLHTTP objects do some kind of forced binding to a single static … | |
Re: Well... that's not conclusive information. What's a window.Jacuba? I'd try downloading the script for a start, and putting it on your own server. Unless the site hosting the script specifically ask that you hotlink it like that, it's rude to do so. |
The End.