Sunday, May 25, 2008

Hello- I have a site that uses iFrames and I had to remove one of the iframes to have open a javascript page in that location. By my problem is that when people go to click on the other links- it no longer opens in that main area since it no longer has a target name located with it. I was wondering if it was possible to add one or if not- is there another way? The code below is what I have and I need to be able to have a section like I do below where it has the javascript text. Thank you very much!

<div id="s" style="position:absolute; top:375px; left:65px; width:690px; height:1500px; text-align:left;"><script type="text/javascript" src="url here" ></script><div align="center" class="badge" style="width:100%;"><p style="margin-top: 2px; margin-bottom: 5px;"></p></div></div>

I have some code:
<html>
<head>
<title>Real Estate</title>
<pre>
<script language="Javascript">
<!-- Hide from incompatible browsers
function RealEstate (location- value) {
this.property_location = location;
this.property_value = value;
function Commercial(loc-val-zone- use) {
this.location= loc;
this.value= val;
this.zone= zone;
this.use= use;
var Instance=new Factory(Philadelphia- 12000000- Industrial- Manufacturing);
document.writeln(Factory)
}
//Stop hiding from incompatible browsers -->
</script>
</pre>
</head>
<body>
</body>
</html>

As you can see- I have an instantiated object:
var Instance=new Factory(Philadelphia- 12000000- Industrial- Manufacturing);
and it has the properties/parameters in the (___).

I need to make a write or writeln statement that will print the properties by just saying which object s properties to write from.

I tried:
document.writeln(Factory)
but surely that someone on here can figure it out!

Any help is greatly appreciated!
Thanks muc

OK- I ve looked pretty thoroughly through questions of this ilk and I still can t get Youtube to load videos. What happens is I will click on a video- get a black screen with the little spiral thing and that s it. This started two months ago with only a few videos not loading and has gotten progessively worse until now- practically no videos will load. I ve tried playing youtube with internet explorer- firefox- and even safari and gotten the same result. My firewall is fine- javascript is enabled- my flash is up-to-date- and I have cleared my cache numerous times to no avail. What else am I missing?

I am working on a greasemonkey script. i am trying to change the value of a hidden text field. the field i am trying to change doesnt have an id- and its name is QuestionsShown. can anybody suggest a method to do this.
i tried "
var qs = window.document.getElementsByName( QuestionsShown )
qs.value = 1-2-3-4-5-6-7-8-9-10
"
but that didnt work. any help?

Does anyone know if it is possible to update Google Doc s Spreadsheet s content using GData and most importantly via the language of Javascript?

I know that it can be done using other languages as there are developer s guides but there isn t one for javascript which is odd because there are js api s for other google services (such as google calender)

Any hints or pointers in the right direction are very welcome
Thanks Col

http://code.google.com/apis/gdata/index.html

i have a basic code of javascript but when i run it - it wont work why is that? the error says kokohref is not defined


<html>
<head>
<script type="text/javascript">

var koko = document.getElementById("site");
koko.style.color = #cccccc;
koko.setAttribute("title"- "i win");


</script>
</head>
<body>


<a id="site" href="somesite.com" title="web site of the monkeys">click me</a>
<script>alert(kokoHref);</script>


</body>
</html>

No comments: