|
Surely:
onLoad="disptime();MM_CheckFlashVersion ...etc
instead of:
onLoad="disptime()";"MM_CheckFlashVersion ...etc
|
|
|
|
|
Right, I missed removing the quotes.
Error propagation by copy & paste
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have a side project I am working on at home and I need help developing it. Is there a location on this site that allows me to post my ideas and requirements, and potentially hire someone / get estimates to work on this with me? I initially thought about the Jobs section, but that is more for a full time position vs this project I am working on.
Thanks for your time.
JM
John Michael
|
|
|
|
|
The jobs board is the best place if you are looking to hire someone, even if it is temp. The forums are for questions.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have a simple syntax question... if you need more background I will post it.
Here is how it is called.
<input type="button" value="Go" onClick="goListGroup(document.listmenu0.firstlevel, document.listmenu0.secondlevel)">
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function goListGroup(){
for (i=arguments.length-1;i>=0; i--){
if (arguments[i].selectedIndex!=-1){
var selectedOptionvalue=arguments[i].options[arguments[i].selectedIndex].value
ShowContent(selectedOptionvalue); return true;
break
}
}
}
This does nothing and I need to know what I did wrong. I am beginning by wanting to show the correct . and eventually show the contents into a all purpose and hide the previous content, but I am at the end of my knowledge here. Can anyone help?
|
|
|
|
|
I find the best tool for finding the root of Javascript problems is to run my code in Firefox with the "Error console" (Tools menu) open. (If IE's "Developer Tools" menu option has anything even half as helpful/good as that I've yet to find it.)
|
|
|
|
|
Hi,
Getting to familiarise myself to the PHP Language.
I am familiar with MFC/CPP,etc. My questions are now:-
-How do I Debug a Script. Is there a Debugger of kinds available to see what happens, and where I can set Breakpoints. I currently use 'AlleyCode' to view the scripts written by someone else.
- I Note that the language does not mention Virtual Functions. (So I would assume that there is no VTable Hidden Member.) Does that mean that I can Save and Retrieve a PHP Class (binary)Safely to and from a File using fread() and fwrite().
- Is there a way of Loading a DLL and Calling DLL Functions from PHP Code. If so, what are the Calling Conventions.
The List is much longer, but the above are for now the important ones.
Regards'
Bram van Kampen
|
|
|
|
|
For debugging, I usually just put in echo statements and watch what happens. I've also used the technique of logging things to a file on the server to see what happens during execution of a PHP script.
I'm not sure about your other questions. Since PHP is an interpreted scripting language, I'm not sure that saving a binary representation of classes makes much sense, but maybe someone else knows better than me. All my PHP work has been deployed on Linux boxes, so Windows DLL's don't make much sense there, either.
I haven't tried all the PHP tools, but there's a list that you might find useful at the PHP Tools[^] web site.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
For debugging I generally just dump variables to the page or a log using print_r[^]. Set the error_reporting[^] level to something useful and turn on the display_errors[^] option for development so you can see warnings and errors.
You can save and load class data using serialize[^] and unserialize[^]. Serialized data looks a lot like JSON.
For accessing a DLL there is W32api[^] - I've never used it myself though.
|
|
|
|
|
I designing a Chained Menu using 3 list boxes instead of combo boxes. I have the basic idea on how to do the chained menu, but on the list boxes I can not figure out how to resize the box and fonts to my specific wants. I also want to get rid of the vertical scroll bar. I know I have to create a customized list box, however I am at a loss on how and I can only use javascript (.js) or html.
anyone have an idea?
|
|
|
|
|
TreyUF wrote: I can not figure out how to resize the box and fonts to my specific wants
CSS comes to mind.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
How in CSS can I keep the vertical scroll bar from showing up in a list box and resize it?
|
|
|
|
|
|
Ok, I have gotten some idea how to do it, but I can not completely hide the scroll bar over all browsers. After further research, that method is for IE and has issues on other browsers.
Again I am using a Listbox or a box and want to hide the or even remove the scroll bar completely.
|
|
|
|
|
Why not use a div instead? You can set the height, width, etc, to suit.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Use instead of the list box? I could, but the is that I am using a chain menu to help students navigate to where they want instead of have 30 links or so. One list box, they would select their operating system. Then the next list box comes alive and then they select their version. Finally the last box comes alive and then according to what they click there, it would show the information below the table (which is holding the chained list boxes neatly).
I only want the scroll bar to show on the selections that are needed. Will work in this capacity? or is there a better way of getting this done?
|
|
|
|
|
I think you're getting hung up on scrollbars: why not use drop down lists instead of listboxes?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
well ........... I kinda wanted all the options to be visible and kinda liked the idea <pouts> I already have the chained menu set up as drop down at the moment.
However, with that said .... is it possible to accomplish what I was looking for?
|
|
|
|
|
Experts,
I have a div tag i have assigned with 3 pictures in it. lets call it
now what i would like to happen is on mouse hover on a separate button this div tag is displayed (visible), and on mouse out it becomes invisible.
Any ideas of how this can be done.
I am sorry if this is a stupidly easy question to answer, i am use to coding in vb.net and thought i would have a go at a different language
as in vb.net i wold do groupbox.visible=false.
Thanks
Dan
|
|
|
|
|
<body>
<script type="text/javascript">
function mousemove()
{
document.getElementById("divTest").style.visibility = "visible";
}
function mouseout()
{
document.getElementById("divTest").style.visibility = "hidden";
}
</script>
<form id="form1" runat="server">
<div id="divTest">Test DIV Content</div>
<div>
<input type="button" runat="server" onmouseout="mouseout()" onmousemove="mousemove()" id="btnTest" value="Mouse Move/Mouse Out" style="cursor:pointer;"/>
</div>
</form>
</body>
Mate you should learn javascript must in web development. Happy coding
|
|
|
|
|
If you want your code to have better cross-browser compatibility, you should use something more like this:
<html>
<head>
<title></title>
<script type="text/javascript">
function mouseover()
{
document.getElementById("divTest").style.display = "inline";
}
function mouseout()
{
document.getElementById("divTest").style.display = "none";
}
</script>
</head>
<body>
<form id="form1" >
<div>
<input type="button" onmouseout="mouseout()" onmouseover="mouseover()" id="btnTest" value="Mouse Over/Mouse Out" style="cursor:pointer;" />
</div>
<div id="divTest" style="display:none;">Test DIV Content</div>
</form>
</body>
</html>
|
|
|
|
|
Thanks,
This works, however i have some button images i would like to use, i have tried as best to use your code and incorprate it into the image i am using but hit a brick wall.
i used
<img src="images/MainScreen/Welcom.jpg" name="Welcome" width="146" height="43" onClick="mouseout()">
but his code doesn't seem to be doing anything, unlike your code above. Any help would be great
Cheers
Dan
|
|
|
|
|
OK i seem to be getting somewhere.......However, is there any way that i can change the background image of another button by pressing a particualr button.
What i have is a button which when rolled over goes red, and clicked goes green ( ad should stay green!!)
What i then want to do is only when a mouse click is on another button the orignal green button goes back to orginal and the clicked button becomes green.
I have a rough idea of how to do it except but don't know if it would actually work
Current code
<input type="image" onClick= "hideSK();hideRK();showFK();this.src='images/Main screen/Main buttons/Welcome.jpg';MM_callJS('roll')"
onmouseover="this.src='images/Main screen/Main buttons/WelomeRed.jpg'"
onMouseOut="this.src='images/Main screen/Main buttons/Welcome.jpg'"
value="Welcome" src="images/Main screen/Main buttons/Welcome.jpg" width="146" height="43"
I would then like to add a function which will change the previous buttons back to blue
something like button.value="home".image scr= "home blue.jpg
Thanks
Dan
|
|
|
|
|
I have a application using session variables. It works fine if the web app is deployed to a single server. Once the app is put on a load balanced servers, the app sometimes has nothing stored in the session variable. Reason being when the user logged in the first time that page request went to Server A and after login the second page request went to Server B and now the app thinks now one is logged in and kicks the user back to the login page.
Is there a solution for this?
|
|
|
|
|