Jump to content

HTML and JS baaga vachina vallu unnara? vallaki oka small question


Recommended Posts

Posted

ok chinna doubt....

HTML lo....SCRIPT tag FORM tag lopala gaani baita undatam valla vache difference enti?

Thanks
Chandu1256

Posted

[quote author=vaasu link=topic=31466.msg219741#msg219741 date=1263080386]
difference undo ledho teliyadhu... rendu pani chesthayi
[/quote]

pani chesthunnai bro...kaani ...dhaani mundhu unna div tags effect avuthaya ?if script is placed after those div's?

Posted

[quote author=chandu1256 link=topic=31466.msg219749#msg219749 date=1263080630]
pani chesthunnai bro...kaani ...dhaani mundhu unna div tags effect avuthaya ?if script is placed after those div's?
[/quote]
div tages r just used for design....
java script will never effect the design....
i mean table tags, div tags, soan, panel etc tags will not be effected by java script

Posted

but in some cases it may effect...

for example if thee is div tag  like <div id="div1"></div>

if in the javascript u r trying to access this div with id, then the javascript should be outside the div tags

Posted

Its not a good practice to mix script tags and form tags. Keep the script tags for javascript, and form tags for web page design.
paste the code you are writing, we can give you better insight.

Posted

code or ekkadaina simple example host chesi nee requirement ento cheppu
we can get it solved
if you are not sure whether that div exists or not and alanti div meedha operation chesetappudu using javascript, its always better to check if div is available or not. Otherwise it will throw script error if the div is not available
like

if(document.getElementById(div_id)){
document.getElementById(div_id).style.display = block;
}

Posted

Nenu work chesthunna website lo header alignment sarigga ledhu...

konni pages lo perfect ga undhi...

sarigga leni page lo ...

<form > lopala
<script>undhi...

vere pages lo script was outside the form....

so dhaani valla emana alignment affect avuthundha?

Posted

[quote author=chandu1256 link=topic=31466.msg220122#msg220122 date=1263089509]
Nenu work chesthunna website lo header alignment sarigga ledhu...

konni pages lo perfect ga undhi...

sarigga leni page lo ...

<form > lopala
<script>undhi...

vere pages lo script was outside the form....

so dhaani valla emana alignment affect avuthundha?


[/quote]
yes dude java scripts from lopata rasthe then the div content wil change the alignment u need to name very div with an id

Posted

Thanks master!!! Thanks everyone!!! issue solve aithe... post chesthanu

Posted

[quote author=chandu1256 link=topic=31466.msg220479#msg220479 date=1263094192]
Thanks master!!! Thanks everyone!!! issue solve aithe... post chesthanu
[/quote]
if possible try to create a replica of the problem and post the codes of the page that works fine and that doesn't.
All the best..

if nothing works try  hitwalltwice ... it really works..  !':

×
×
  • Create New...