473,609 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

tricky javascript problem requires javascript guru !


Hi,

I am complete JavaScript novice and would really appreciate some help with
this code:

=============== =============== =============== =============== =========

<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>

<!--#include file="Connectio ns/ssdb.asp" -->
<%
Dim rs_news_edit
Dim rs_news_edit_nu mRows

Set rs_news_edit = Server.CreateOb ject("ADODB.Rec ordset")
rs_news_edit.Ac tiveConnection = MM_ssdb_STRING
rs_news_edit.So urce = "SELECT * FROM tblnews"
rs_news_edit.Cu rsorType = 0
rs_news_edit.Cu rsorLocation = 2
rs_news_edit.Lo ckType = 1
rs_news_edit.Op en()

rs_news_edit_nu mRows = 0
%>
<%
Dim Repeat1__numRow s
Dim Repeat1__index

Repeat1__numRow s = -1
Repeat1__index = 0
rs_news_edit_nu mRows = rs_news_edit_nu mRows + Repeat1__numRow s
%>
<%
Dim MM_paramName
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL
and Form parameters

Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth

Dim MM_removeList
Dim MM_item
Dim MM_nextItem

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If

MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QuerySt ring
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_rem oveList,MM_next Item,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem &
Server.URLencod e(Request.Query String(MM_item) )
End If
Next

' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_rem oveList,MM_next Item,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem &
Server.URLencod e(Request.Form( MM_item))
End If
Next

' create the Form + URL string and remove the intial '&' from each of the
strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBo th, Len(MM_keepBoth ) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepUR L, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepFo rm, Len(MM_keepForm ) - 1)
End If

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(fir stItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<html>
<head>
<title>ss</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style>
..showSwitch {
display: block;
font-family: Georgia, "Times New Roman", Times, serif;
color: #FF0000;
}
..hideSwitch {
display: none;
font-family: Georgia, "Times New Roman", Times, serif;
color: #FF0000;
}
</style>

<script>

function showHideSwitch2 (theid, value) {
if (document.getEl ementById) {
switch_id = document.getEle mentById(theid) ;
if (value == 'show') {
switch_id.class Name = 'showSwitch';
}else{ switch_id.class Name = 'hideSwitch';
}
}
}

</script>
<style type="text/css">
<!--
-->
</style>

</head>
<body background="Ima ges/BG.jpg">
<table width="100%" height="100%" border="0" align="center" cellpadding="0"
cellspacing="0" >
<tr>
<td align="center" valign="middle" >
<table width="700" height="600" border="1" align="center" cellpadding="0"
cellspacing="0" bordercolor="#B 1D3EC">
<tr>
<td bgcolor="#FFFFF F">
<table width="100%" height="100%" border="0" align="center"
cellpadding="0" cellspacing="0" >
<tr>
<td><div align="left">&n bsp;&nbsp;&nbsp ;&nbsp;<img
src="Images/edit_news.jpg" width="142" height="40"></div></td>
</tr>
<tr>
<td><p align="center"> &nbsp;</p>
<p align="left">&n bsp;</p>
<table width="95%" border="0" align="center"
cellpadding="0" cellspacing="0" >
<%
While ((Repeat1__numR ows <> 0) AND (NOT rs_news_edit.EO F))
%>
<tr>
<td width="28%"><p
align="left"><% =(rs_news_edit. Fields.Item("ne ws_summary").Va lue)%></p>
<p>&nbsp;</p></td>
<td width="28%"><di v align="center">

<p><%=(rs_news_ edit.Fields.Ite m("news_complet e").Value)%> </p>
<p>&nbsp;</p>
</div></td>
<td width="28%">&nb sp;</td>
<td width="16%">
<div align="center">
<p align="right">< a href="edit_news _01.asp?<%=
MM_keepURL & MM_joinChar(MM_ keepURL) & "id=" &
rs_news_edit.Fi elds.Item("id") .Value %>">Change</a>
</p>
<p>&nbsp; </p>
</div></td>
</tr>
<tr>
<td colspan="4"><p align="left"><a href="javascrip t:;"
onClick="showHi deSwitch2('swit ch4', 'show')">open
4</a>
<a href="javascrip t:;" onClick="showHi deSwitch2('swit ch4', 'hide')">close
4</a>
<p class="hideSwit ch" id="switch4"><t able width="75%" border="1"
align="center">
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
</table></p></p>
</td>
</tr>
<tr>
<td colspan="4"><hr ></td>
</tr>
<tr>
<td colspan="4">&nb sp;</td>
</tr>
<%
Repeat1__index= Repeat1__index+ 1
Repeat1__numRow s=Repeat1__numR ows-1
rs_news_edit.Mo veNext()
Wend
%>
</table>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10" bgcolor="#B1D3E C">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<%
rs_news_edit.Cl ose()
Set rs_news_edit = Nothing
%>
=============== =============== =============== =============== =========

The problem is that the table with the '1's in it does not appear in each
repeat region bit, so for example if you clicked on the 5th repeated region
section the table would still open in the first section with the included
dynamic data also from the first item

Is there anyway I can fix this ?

Thanks in advance,

Andy.

Jul 20 '05 #1
3 1836
Andy wrote:
Hi,

I am complete JavaScript novice and would really appreciate some help
with this code:

=============== =============== =============== =============== =========

<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>

<!--#include file="Connectio ns/ssdb.asp" -->
<%
Dim rs_news_edit
Dim rs_news_edit_nu mRows

Set rs_news_edit = Server.CreateOb ject("ADODB.Rec ordset")
rs_news_edit.Ac tiveConnection = MM_ssdb_STRING
rs_news_edit.So urce = "SELECT * FROM tblnews"
rs_news_edit.Cu rsorType = 0
rs_news_edit.Cu rsorLocation = 2
rs_news_edit.Lo ckType = 1
rs_news_edit.Op en()

rs_news_edit_nu mRows = 0
%>
<%
Dim Repeat1__numRow s
Dim Repeat1__index

Repeat1__numRow s = -1
Repeat1__index = 0
rs_news_edit_nu mRows = rs_news_edit_nu mRows + Repeat1__numRow s
%>
<%
Dim MM_paramName
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining
URL and Form parameters

Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth

Dim MM_removeList
Dim MM_item
Dim MM_nextItem

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If

MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QuerySt ring
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_rem oveList,MM_next Item,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem &
Server.URLencod e(Request.Query String(MM_item) )
End If
Next

' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_rem oveList,MM_next Item,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem &
Server.URLencod e(Request.Form( MM_item))
End If
Next

' create the Form + URL string and remove the intial '&' from each of
the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBo th, Len(MM_keepBoth ) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepUR L, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepFo rm, Len(MM_keepForm ) - 1)
End If

' a utility function used for adding additional parameters to these
strings Function MM_joinChar(fir stItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<html>
<head>
<title>ss</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

<style>
.showSwitch {
display: block;
font-family: Georgia, "Times New Roman", Times, serif;
color: #FF0000;
}
.hideSwitch {
display: none;
font-family: Georgia, "Times New Roman", Times, serif;
color: #FF0000;
}
</style>

<script>

function showHideSwitch2 (theid, value) {
if (document.getEl ementById) {
switch_id = document.getEle mentById(theid) ;
if (value == 'show') {
switch_id.class Name = 'showSwitch';
}else{ switch_id.class Name = 'hideSwitch';
}
}
}

</script>
<style type="text/css">
<!--
-->
</style>

</head>
<body background="Ima ges/BG.jpg">
<table width="100%" height="100%" border="0" align="center"
cellpadding="0" cellspacing="0" >
<tr>
<td align="center" valign="middle" >
<table width="700" height="600" border="1" align="center"
cellpadding="0" cellspacing="0" bordercolor="#B 1D3EC">
<tr>
<td bgcolor="#FFFFF F">
<table width="100%" height="100%" border="0"
align="center" cellpadding="0" cellspacing="0" >
<tr>
<td><div align="left">&n bsp;&nbsp;&nbsp ;&nbsp;<img
src="Images/edit_news.jpg" width="142" height="40"></div></td>
</tr>
<tr>
<td><p align="center"> &nbsp;</p>
<p align="left">&n bsp;</p>
<table width="95%" border="0" align="center"
cellpadding="0" cellspacing="0" >
<%
While ((Repeat1__numR ows <> 0) AND (NOT rs_news_edit.EO F))
%>
<tr>
<td width="28%"><p
align="left"><% =(rs_news_edit. Fields.Item("ne ws_summary").Va lue)%></p>
<p>&nbsp;</p></td>
<td width="28%"><di v align="center">

<p><%=(rs_news_ edit.Fields.Ite m("news_complet e").Value)%> </p>
<p>&nbsp;</p>
</div></td>
<td width="28%">&nb sp;</td>
<td width="16%">
<div align="center">
<p align="right">< a
href="edit_news _01.asp?<%= MM_keepURL & MM_joinChar(MM_ keepURL) &
"id=" & rs_news_edit.Fi elds.Item("id") .Value %>">Change</a>
</p>
<p>&nbsp; </p>
</div></td>
</tr>
<tr>
<td colspan="4"><p align="left"><a
href="javascrip t:;" onClick="showHi deSwitch2('swit ch4', 'show')">open
4</a>
<a href="javascrip t:;" onClick="showHi deSwitch2('swit ch4',
'hide')">close 4</a>
<p class="hideSwit ch" id="switch4"><t able width="75%" border="1"
align="center">
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
</table></p></p>
</td>
</tr>
<tr>
<td colspan="4"><hr ></td>
</tr>
<tr>
<td colspan="4">&nb sp;</td>
</tr>
<%
Repeat1__index= Repeat1__index+ 1
Repeat1__numRow s=Repeat1__numR ows-1
rs_news_edit.Mo veNext()
Wend
%>
</table>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10" bgcolor="#B1D3E C">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<%
rs_news_edit.Cl ose()
Set rs_news_edit = Nothing
%>
=============== =============== =============== =============== =========

The problem is that the table with the '1's in it does not appear in
each repeat region bit, so for example if you clicked on the 5th
repeated region section the table would still open in the first
section with the included dynamic data also from the first item

Is there anyway I can fix this ?

Thanks in advance,

Andy.


Andy this is VBScript.
This post has been copied to microsoft.publi c.scripting.vbs cript, check
there for a reply.
Follow-ups have been set to microsoft.publi c.scripting.vbs cript only.
--
Andrew Urquhart
- FAQ: http://jibbering.com/faq
- Archive: http://groups.google.com/groups?grou...ang.javascript
- Reply: www.andrewu.co.uk/about/contact/
Jul 20 '05 #2

Hi Andrew,

The VBscript is for the ASP code, there is a little JavaScript within
section of code that controls the show hide aspect of website, its this I
hope to fix.

Thanks

Andy.

"Andrew Urquhart" <re***@website. in.sig> wrote in message
news:6pL1c.650$ 54.540@newsfe1-win...
Andy wrote:
Hi,

I am complete JavaScript novice and would really appreciate some help
with this code:

=============== =============== =============== =============== =========

<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>

<!--#include file="Connectio ns/ssdb.asp" -->
<%
Dim rs_news_edit
Dim rs_news_edit_nu mRows

Set rs_news_edit = Server.CreateOb ject("ADODB.Rec ordset")
rs_news_edit.Ac tiveConnection = MM_ssdb_STRING
rs_news_edit.So urce = "SELECT * FROM tblnews"
rs_news_edit.Cu rsorType = 0
rs_news_edit.Cu rsorLocation = 2
rs_news_edit.Lo ckType = 1
rs_news_edit.Op en()

rs_news_edit_nu mRows = 0
%>
<%
Dim Repeat1__numRow s
Dim Repeat1__index

Repeat1__numRow s = -1
Repeat1__index = 0
rs_news_edit_nu mRows = rs_news_edit_nu mRows + Repeat1__numRow s
%>
<%
Dim MM_paramName
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining
URL and Form parameters

Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth

Dim MM_removeList
Dim MM_item
Dim MM_nextItem

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If

MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QuerySt ring
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_rem oveList,MM_next Item,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem &
Server.URLencod e(Request.Query String(MM_item) )
End If
Next

' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_rem oveList,MM_next Item,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem &
Server.URLencod e(Request.Form( MM_item))
End If
Next

' create the Form + URL string and remove the intial '&' from each of
the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBo th, Len(MM_keepBoth ) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepUR L, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepFo rm, Len(MM_keepForm ) - 1)
End If

' a utility function used for adding additional parameters to these
strings Function MM_joinChar(fir stItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<html>
<head>
<title>ss</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

<style>
.showSwitch {
display: block;
font-family: Georgia, "Times New Roman", Times, serif;
color: #FF0000;
}
.hideSwitch {
display: none;
font-family: Georgia, "Times New Roman", Times, serif;
color: #FF0000;
}
</style>

<script>

function showHideSwitch2 (theid, value) {
if (document.getEl ementById) {
switch_id = document.getEle mentById(theid) ;
if (value == 'show') {
switch_id.class Name = 'showSwitch';
}else{ switch_id.class Name = 'hideSwitch';
}
}
}

</script>
<style type="text/css">
<!--
-->
</style>

</head>
<body background="Ima ges/BG.jpg">
<table width="100%" height="100%" border="0" align="center"
cellpadding="0" cellspacing="0" >
<tr>
<td align="center" valign="middle" >
<table width="700" height="600" border="1" align="center"
cellpadding="0" cellspacing="0" bordercolor="#B 1D3EC">
<tr>
<td bgcolor="#FFFFF F">
<table width="100%" height="100%" border="0"
align="center" cellpadding="0" cellspacing="0" >
<tr>
<td><div align="left">&n bsp;&nbsp;&nbsp ;&nbsp;<img
src="Images/edit_news.jpg" width="142" height="40"></div></td>
</tr>
<tr>
<td><p align="center"> &nbsp;</p>
<p align="left">&n bsp;</p>
<table width="95%" border="0" align="center"
cellpadding="0" cellspacing="0" >
<%
While ((Repeat1__numR ows <> 0) AND (NOT rs_news_edit.EO F))
%>
<tr>
<td width="28%"><p
align="left"><% =(rs_news_edit. Fields.Item("ne ws_summary").Va lue)%></p>
<p>&nbsp;</p></td>
<td width="28%"><di v align="center">

<p><%=(rs_news_ edit.Fields.Ite m("news_complet e").Value)%> </p>
<p>&nbsp;</p>
</div></td>
<td width="28%">&nb sp;</td>
<td width="16%">
<div align="center">
<p align="right">< a
href="edit_news _01.asp?<%= MM_keepURL & MM_joinChar(MM_ keepURL) &
"id=" & rs_news_edit.Fi elds.Item("id") .Value %>">Change</a>
</p>
<p>&nbsp; </p>
</div></td>
</tr>
<tr>
<td colspan="4"><p align="left"><a
href="javascrip t:;" onClick="showHi deSwitch2('swit ch4', 'show')">open
4</a>
<a href="javascrip t:;" onClick="showHi deSwitch2('swit ch4',
'hide')">close 4</a>
<p class="hideSwit ch" id="switch4"><t able width="75%" border="1"
align="center">
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
</table></p></p>
</td>
</tr>
<tr>
<td colspan="4"><hr ></td>
</tr>
<tr>
<td colspan="4">&nb sp;</td>
</tr>
<%
Repeat1__index= Repeat1__index+ 1
Repeat1__numRow s=Repeat1__numR ows-1
rs_news_edit.Mo veNext()
Wend
%>
</table>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p>
<p align="center"> &nbsp;</p></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10" bgcolor="#B1D3E C">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<%
rs_news_edit.Cl ose()
Set rs_news_edit = Nothing
%>
=============== =============== =============== =============== =========

The problem is that the table with the '1's in it does not appear in
each repeat region bit, so for example if you clicked on the 5th
repeated region section the table would still open in the first
section with the included dynamic data also from the first item

Is there anyway I can fix this ?

Thanks in advance,

Andy.


Andy this is VBScript.
This post has been copied to microsoft.publi c.scripting.vbs cript, check
there for a reply.
Follow-ups have been set to microsoft.publi c.scripting.vbs cript only.
--
Andrew Urquhart
- FAQ: http://jibbering.com/faq
- Archive: http://groups.google.com/groups?grou...ang.javascript
- Reply: www.andrewu.co.uk/about/contact/

Jul 20 '05 #3
In article <40************ ***********@new s.dial.pipex.co m>, andyww14
@hotmail.com enlightened us with...

Hi Andrew,

The VBscript is for the ASP code, there is a little JavaScript within
section of code that controls the show hide aspect of website, its this I
hope to fix.


Then copy and paste the code as the browser sees it. With View->Source.
Preferably in a smaller bit of code that simply demonstrates the
javascript problem so we can copy and paste it and play with it.

You expect us to know VBScript? ;)
(actually having the script there is confusing if it is a JS problem,
because we don't see what the browser sees, so how can we fix it?)

From what I can tell, though, the name is hardcoded as
<a href="javascrip t:;" onClick="showHi deSwitch2('swit ch4', 'hide')">

Well, if that piece repeats as it shows, the same div will be passed for
every click. So that same div will be hidden and shown every time.
Check the real source to see.

--
--
~kaeli~
Santa's helpers are subordinate clauses.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
595
by: dracolytch | last post by:
Good day all, Ok, I have a pretty tricky problem that I need some help with. I pass around search query information a fair amount (specifically WHERE statements). Normally, I just rawurlencode() the buggers, and pass them via the URL. I like having the where clauses in the URL, because then someone can just bookmark the URL, or send it to a friend, and I don't have to worry about a thing. If someone does a search that requires a LIKE...
6
1841
by: KKramsch | last post by:
OK, here's the scenario: I have a CGI script that generates a page with frames (BTW, I'm not crazy about frames, but in this case the decision to use them is out of my hands). In a typical session, the user interacts with two of these frames extensively, and up to the very end of the session, this interaction is handled entirely client-side by a fairly elaborate JavaScript script. (This interaction takes place exclusively via HTML...
11
2842
by: Peter Pfeiffer | last post by:
I've written several scripts that have "while" blocks which increment a date by one day if the date does not match one of a group of dates. However, sometimes it apparently steps out out the while loop even though my condition isn't met. Will work for a few loops then steps out often. Are there javascript "date" issues? I have also noticed different results between Firefox and Internet Explorer. thanks for any comments,
1
1515
by: Jarrod Hyder | last post by:
Ok, I wrote my own weblog and I'm working on the web interface for adding/editing my posts. I decided to add a little preview button...when the button is clicked it is suppose to open a pop-up window. I wrote the whole preview function in javascript so that I don't have to reload the page to see a preview. Here is the code I wrote that doesn't work at all: Code:
7
2739
by: DKode | last post by:
I have a "Timesheet" application I am building for my company. The way I have the sql tables setup, is each day has a unique record for a specific user, then there is a TimeEntry table, that has multiple TimeEntries for one day. The TimeEntries for a specific day are like so: 7:00AM - 11:00AM : Regular Hours 11:00AM - 12:00PM : Lunch
9
1717
by: howachen | last post by:
Hi, I have one very simple tricky question which is quite interesting, I would like to share with all of you here... //======================================= <script type="text/javascript">
16
5879
by: Singulus | last post by:
Hello all, I've searched for similar threads, I've found some bit of useful info here and there, but nevertheless I want to post my questions...So, how can I (we, in fact the forum can benefit from the discussion, this is the point here) become C++ gurus? I have 5 years of working experience with C/C++, I know that this can be very ambiguous thing, but anyway...I've come to the point where I want to structure and organize my further...
34
2505
by: -Lost | last post by:
I'm REALLY liking this so far. And for those who welcome something a little less cryptic than what the resident date guru offers, here's a chance to try something fairly elegant and definitely unique. http://www.datejs.com/ -- -Lost Remove the extra words to reply by e-mail. Don't e-mail me. I am kidding. No I am not.
22
2883
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created using Perl on the backend, with Javascript providing limited frontend functionality. As an example, an expanding tree would be fully populated on the server-side and then presented to the browser, with Javascript and CSS being used to vary the...
0
8534
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8509
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8188
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8374
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5502
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4059
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2502
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1630
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1366
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.