|
I have tried and failed so many times at making an Info Center. Iv done the HTML, im just struggling to do the Javascript? Could someone help me please?
|
|
|
|
|
If you have interest in coding, I'd recommend using this as a chance to grow and learn. This is how I started off (literally, making codes for proboards that I had no idea how to make).
What in specific are you having trouble with?
|
|
|
|
If you want to just work with the HTML and let a code handle the rest, try MYO info center.
|
|
|
|
|
Chris: Iv used it before but the MYO Ionfe Center doesnt have certain functions that id like. Eric: Well i was hoping to. Im just having trouble making the code it self. Iv looked at loads of Info Center codes but i still dont get how it works and how to make it. How to clollect the data from the old info center and using it on the new one
|
|
|
|
|
Alright. Just an idea.
Anyways, most IC codes tend to be large, so most programmers compact them... a lot. It would help to look at simpler codes and learn how they fetch data. It's really a similar process. The key difference is that you aren't repeating the same step multiple times, but are instead doing 5 steps. (One for each IC section)
|
|
|
|
|
But how would you collect the info for each section?
Last Edit: Oct 12, 2009 18:31:55 GMT by ǻñî§ђ™
|
|
|
|
|
What you have to do is loop through all elements that could possibly contain the data that you need (in this case TDs, or table cells). Then you have to set up an if statement that targets the one particular element that you are trying to get at. You can do this by examining unique or rare attribute values combined with unique items contained within the innerHTML.
Once you have it limited down you can use splits, regular expressions or substrings to pull the data out.
|
|
|
|
Sorry, I was assuming you knew enough coding already to be able to do that. If Eric's post isn't enough help and you want to try to make it yourself, try looking at the basic tutorials for PB coding we have here.
|
|
|
|
|
Sorry it took so long to reply Would that be the same if you were putting span tags in the html and then having the javascript below it? Like Calis MYO Info Center
|
|
|
|
|
Sorry it took so long to reply Would that be the same if you were putting span tags in the html and then having the javascript below it? Like Calis MYO Info Center You could do it either way. If you put the spans in, then you just do a line like this: document.getElementById("ID_OF_THE_SPAN_HERE").innerHTML = VARIABLE_NAME;
|
|
|
|
|
Can anyone help please?
|
|
|
|
|
Two days for a bump? I hadn't even seen this thread yet. Please try to be patient. Anyways, you have a syntax error... Error: missing ; before statement Source file: cdmod.proboards.com/index.cgiLine: 268, Column: 77 Source code: ="center" colspan="1" width="33%">'+fTitle+' would like to welcome '+newmemb+'' to the forum. We now have a grand total of '+totalmembs+'!<br/></td><td class="windowbg" align="left" colspan="1" width="33%"><b>Last Topic:</b> '+lastpost+'<br/><b>Updated By That's what Firefox says. If you look, you'll notice you have two single quotes right next to each other. That's your error.
|
|
|
|
|
Also, you have vAlighn instead of vAlign
|
|
|