How To Hide Website Contents Using Java

Mar 29, 2010

This is my bit of code and I will try to explain what I want to achieve.

<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="30"><font size="-2">Day</font></td>
<td width="50"><font size="-2">Period</font></td>
<td width="50"><font size="-2">Time</font></td>
<td width="50"><font size="-2">Total</font></td>
<td width="35"><font size="-2">Code</font></td>
<td><font size="-2">Note</font></td> .....

Basically this gives me a table with all the start and finish times for each day from Monday to Sunday. What I'm looking at is the ability to hide particular day using java if possible. I know you can use div's to do this and I've searched the forum for solution but it looks like my case is unusual. I want to use show/hide buttons to display certain day and hide rest of them. Is it possible to put the new code around the existing one?

View 1 Replies


ADVERTISEMENT

Website / Java Works In Most IE7 But Not All

Aug 19, 2010

Why this website works in IE7 and in IE6 on most PC's but on 1 or 2 PC's that have IE7 and IE6 it is not working? [URL]. The issue is that in some IE7's that when the user mouses over the accordion it is not opening. In most IE7's it does. On my client's home PC it is not. On his work PC it is working. I have gone through IE7 settings (tools> internet options> advanced) and made them identical to IE7's that work and it is still not doing what we want it to do.

View 5 Replies View Related

Getting A Code To Open A Java Alert On Another Website?

Apr 14, 2011

My website was recently ftp hacked and a file inserted into it - js.php - which seems to be some sort of advertising spam programme. Having spotted the file I have renamed it to hide it but lots of other sites are still referring into my site looking for this php file. What I would like to do is to *just* open a java alert box on the referring sites to alert the users that the site has been hacked and that they should notify the webmaster so that he can fix his site.The line referring into my site is -

<script type="text/javascript" src="http://www.mysite.com/js.php"></script>

Is this something simple to do?

View 3 Replies View Related

Custom Back Button In Java Based Website Not Working In IE9 But In IE7-8 / Fix It?

Nov 15, 2011

We've developed a web application with static & iframes, each time we interact with the links in the static frame gives results in the iframe.
it has a custom back button in the static menu frame. this back button working fine in IE7 IE8 but not properly working in IE9 it goes 3 sometimes 4
pages back.

we are using history.go(-1)
is there any other way to make it work in IE9, even pressing the Backspace key wont work. we've tried many ways but no use.

View 3 Replies View Related

JQuery :: Get A Web Contents From Other Website?

Feb 12, 2010

I have simple web contents in a page on one server, [URL] and want to plant that in a page on a second server, [URL]

This code doesn't work:

$(function(){
$("#test").load("http://foo.bar.org/test.shtml");
});

although it does work if I put test.shtml on the second server, bar.org, and refer to it relative to root.

View 2 Replies View Related

Capture HTML Contents From Another Website?

May 27, 2010

How can I use Javascript to access an external website (a href...) and capture the contents of a particular HTML tag. I thought ".innnerHTML" might do it but I've tried several configurations and can't seem to figure out how. I'm not even sure that it's possible.

View 1 Replies View Related

JQuery :: Vertical Scroller For Contents On Website

Jul 12, 2010

I am trying to introduce a vertical scroller to my site, I got the code from a tutorial and slightly tweaked the html to meet my needs but now the content doesn't scroll. None of this code has been altered!
<script type="text/javascript">
$(document).ready(function(){
$(".newsticker-jcarousellite").jCarouselLite({
vertical: true,
hoverPause:true,
visible:10,
auto:500,
speed:1000
});
});
</script>

This is the HTML and PHP part:
<div id="newsticker-demo">
<div class="newsticker-jcarousellite">
<br/><?php
$query = mysql_query("SELECT * FROM employers WHERE featured = 'Yes' AND image != '' ORDER BY rand()");
$i=0;
//$query = mysql_query("SELECT * FROM employers WHERE f_emp_active = 'Yes' and image !='' ORDER BY rand()");
echo '<div>';
while ($aqm=mysql_fetch_array($query)){
?><div><div>
<div class="thumbnail">
<div align="center"><a href="company.php?companyname=<?php echo $string ?>">
<img src="<?=$fullurl?>/thumbnail.php?gd=2&src=employers/logo/big/<?=$aqm[image]?>&maxw=<?=$a18[width]?>" alt="<?=$aqm[companyname]?>" title="<?=$aqm[companyname]?>" class="noborder" /></a>
</div></div>
<div class="clear"></div>
</div></div><br/><br/><?php
if($i==5){
echo '</div><div>';
} $i++;
} echo '</div>'; ?>
</div></div>

View 1 Replies View Related

Table Row Show/hide Depending On The Contents Of A Variable?

Feb 3, 2010

I want to get javascript to show or hide a row in a table depending on whether a value is held by a variable collected in a mulitple part formmail. If only 1 adult fills in their name on the earlier form there is no need to show the row which asks him to agree to membership on a later form page. This is what Ive got so far<form name="frm3" method="post" action="bookingscript.php">

<input type="hidden" name="adult2fn" value="$adult2name" />
<script Language="JavaScript">
var name1 = document.frm3.adult2fn.value;
if(name1 =="")

[Code]....

View 7 Replies View Related

Hide Certain Parts Of The Website?

Feb 6, 2009

I want to hide certain parts of my website by using JavaScript! The small image or a window should appear and cover things up.

This is an example of the window I had in mind: link [URL]). Anyway, I'm new to all this JavaScript business and I don't know how to customize these things. So if anyone has done such things before or knows how to do it

This window widget should have the following characteristics:

- it should stay still where I put it - it shouldn’t move when you scroll down the page (here is a good example [URL]

- website visitors shouldn't be able to move it

- it shouldn't have visible boarders and X button, just background color

View 2 Replies View Related

Protecting Website Contents - "Anti Copy" Controls

Feb 4, 2011

How to make a website show the contents readable to the visitor, while the text is entirely protected, no downloads, no copy/pasted, no saving, ..?

All possible controls to take to protect the content.

It could be somewhat similar to Google Books and Scribd:

A combination of Javascript, PDF, images, Flash, ...

Is there any tool for this? Or just; how to make it ourself?

View 1 Replies View Related

Analyze The Contents Of A Textbox And Replace The Contents With The Appropriate Date?

Jul 15, 2009

I'm looking for javascript to analyze the contents of a textbox and replace the contents with the appropriate date. To make that a little clearer, if the user types 'tomorrow' then when they tab/move onto the next text box the 'tomorrow' text should be replaced with the date for tomorrow in the format dd/mm/yyyy, if the user enters '1 week' then the text should be replaced with the date in one week in the format dd/mm/yyyy etc.

View 1 Replies View Related

Files In Website Are Constantly Getting Injected With Malicious Codes Which Redirects Website?

Jan 28, 2010

The javascripts files in my website are constantly getting injected with malicious codes which redirects my website

View 2 Replies View Related

Code A Feature For Website Using DHTML Where The Person Viewing The Website?

Dec 29, 2005

I'm trying to code a feature for my website using DHTML where the person viewing the website can rotate between viewing the positive/negative points of the website being reviewed. This example was in the publication called Using HTML 4 by Lee Anne Phillips. Code:

View 5 Replies View Related

JQuery :: Ajax Program On Website A Call Website B?

Nov 30, 2010

I have a ajax program on a page on website A. And I need to let it talk to a program on website B. I tried to put website B into the url of the parameter but it doesn't work.It gives me a "[objet XMLHttpRequest]" error.here is the code on website A:

[Code]...

View 1 Replies View Related

Jquery :: ()load Function Not Working - Change Contents Of A Div Named "sub2" With Contents Of "pets.html"

May 2, 2011

Im currently working on a project with jquery... the thing is.. i need to change the contents of a div named "sub2" with the contents of "pets.html"... i've read some tutorials and i thought the best way to do this is through the use of jquery...

Here's my code:

My image which is supposed to be clicked contains this:

The code is working ., but when i transfer my codes to netbeans with Tomcat running the code didnt work ...

Is there anyone here who knows what's wrong or what should i do with my code?

View 1 Replies View Related

Allow A User Of A Website To Add A Poll To The Website

Apr 27, 2010

Suppose I want to allow a user of a website to add a poll to the website for everyone to see/vote on. How exactly would I write a script for that?

View 8 Replies View Related

Putting Part Of Another Website On Another Website?

Nov 17, 2009

I have a webpage and i want to put a section of another website on to my own website..

The Section i want to put on my website is on this page www.bebo.com/thegaadiscos and i only want to put the section with the comments on it...

What i want is a bit like the face book section of this website [URL]

View 4 Replies View Related

Call A Java

Jul 23, 2005

I have a bunch of .js files that I insert into my my html file using
the <script> tag, and this works just fine. The .js files contain
info about the menu, table set up, etc. and take care of the page
format.

But now, I have a tidbit of Javascript in an htm file, and this tidbit
opens up a new window with some information on it. I want to insert
all of the menu and format javascript files on this new window that it
opens. so, my question is: how would I do this: (since this doesn't work!)

output.document.write('<SCRIPT language=JavaScript
src="/scripts/menu_array.js" type=text/javascript></SCRIPT>');

View 5 Replies View Related

Java Navigation Bar

Jul 20, 2005

Anyone know a good site that'll teach you how to make a drop-down navigation
bar? I assume it is javascript

View 1 Replies View Related

Java Dropdown And XML

May 26, 2009

I have a drop down field that is dynamically populated using an XML sheet that looks like:

Code:

I populate the dropdown box using javascript that looks like this:

Code:

My the drop down form looks like this:

Code:

When a user clicks on the drop down box, all of the values inside "<title>" tags get displayed. Once the user has made their selection, the form is submitted and posts the user's option. My problem is that when the user clicks on the drop down box, I want them to see the content included in the "<title>" text but I want the form to post the data included in the "<xml>" tags.

For example, if the user clicks on the drop down menu and selects the option 'Animals' I want the form to post 'xml/animals.xml'. Any ideas how to handle this?

View 14 Replies View Related

Java Timer

Feb 27, 2005

i have found using java script as an exam timer for displaying it to the client is more good than using php..

but i want the page to exit as soon as 40 misn are out...

if java says 40 misn out is there any way for the php to
note that and perform the rquired action?

i am thinking of parallely starting a timer at the server side in php

do u think so? or is htere any way for java script to tlel php the times out

View 1 Replies View Related

Java On A Button?

Aug 21, 2005

I have been creating a webpage and I have added some buttons via frontpage and linked them to another page, the thing I cant figure out is how to add commands like a javascript button to enable a smaller window, no toolbars, no scroll bars etc.

is there any way i can make the buttons so when they are pressed a window opens with my dimensions etc?

View 1 Replies View Related

Javascript Using Java Methods

Jul 23, 2005

Can Java classes/objects be used from within the javascript code on the
HTML page? I.e., can I call a Java method from the javascript function?

View 2 Replies View Related

How To Pass Value From Javascript To Java In Jsp

Jul 23, 2005

in JSP, it's easy to pass value from java-variable to
javascript-variable, like

js_function(a)
{ a=<%java-class.A%>
}

I'm wondering how is the other way around? I tried

js_function(a)
{ <%java-class.A=%>a
}

but there was compiling error.

View 3 Replies View Related

Java Based Chat

Mar 12, 2006

how is it possible to backdoor a java based chat room?

View 2 Replies View Related

Serialize Objects In Java?

Jun 30, 2006

I basically want to be able to store and retrieve a tree structure in
greasemonkey. Unfortunately the GM_setValue and GM_getValue functions
only take string key value pairs. Is there a native javascript function
that will serialize the object so that it can be stored and retrieved
as strings?

View 18 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved