Click here to Skip to main content
15,892,005 members
Home / Discussions / Web Development
   

Web Development

 
Question[HTML IE6] Trouble column size with detailed table Pin
belfaigore2-Feb-09 22:38
belfaigore2-Feb-09 22:38 
AnswerRe: [HTML IE6] Trouble column size with detailed table Pin
Aman Bhullar2-Feb-09 23:15
Aman Bhullar2-Feb-09 23:15 
GeneralRe: [HTML IE6] Trouble column size with detailed table Pin
belfaigore2-Feb-09 23:55
belfaigore2-Feb-09 23:55 
GeneralRe: [HTML IE6] Trouble column size with detailed table Pin
Aman Bhullar3-Feb-09 0:10
Aman Bhullar3-Feb-09 0:10 
GeneralRe: [HTML IE6] Trouble column size with detailed table Pin
belfaigore3-Feb-09 2:24
belfaigore3-Feb-09 2:24 
QuestionCannot instantiate non-existent class: database in /includes/joomla.php Pin
Rasma Raj2-Feb-09 20:24
Rasma Raj2-Feb-09 20:24 
QuestionMysterious "File Not Found" Pin
Reelix2-Feb-09 0:55
Reelix2-Feb-09 0:55 
Questiononclick event not working in firefox but works in IE Pin
uglyeyes1-Feb-09 21:41
uglyeyes1-Feb-09 21:41 
HI!

I spend most of the day trying to figure out why it didnt work in firefox. here is a link to website
http://www.danfegrocers.com.au/mycart.aspx?catId=9

the update link works in IE but not in firefox. not sure why. the code behind script

For intI = 0 To Convert.ToInt16(Session.Count() - 1)
'Get the number of rows and columns selected by the user.
Dim numrows As Integer = Convert.ToInt16(Session.Count())
Dim numcells As Integer = 4
query = "SELECT * FROM product WHERE prodId=" & Session.Keys(intI)

objConn = New SqlConnection(dbPath)
cmd = New SqlCommand(query, objConn)
If objConn.State = ConnectionState.Closed Then
objConn.Open()
End If
showCart = cmd.ExecuteReader()

'Dim cell As HtmlTableCell
Dim cell1 As New HtmlTableCell
Dim cell2 As New HtmlTableCell
Dim cell3 As New HtmlTableCell


Dim cellAmount As New HtmlTableCell
Dim cellAction As New HtmlTableCell
Dim confcell1 As New HtmlTableCell
Dim confcell2 As New HtmlTableCell
Dim confcell3 As New HtmlTableCell
Dim confcellAmount As New HtmlTableCell

If showCart.Read() Then
' Iterate through the rows.
' Create a new row and add it to the Rows collection.
row = New HtmlTableRow
confrow = New HtmlTableRow

' Provide a different background color for alternating rows.
' Iterate through the cells of a row.
cell1.Controls.Add(New LiteralControl(showCart.GetValue(1)))
cell2.Controls.Add(New LiteralControl("<input type='text' name='txt" & intI & "' value='" & Session(intI) & "' maxlength='2' size='2' /> <a href='#' onclick=""javascript:upThis(document.Form1.txt" & intI & ".value," & showCart.GetValue(0) & ");"">Update</a>"))
cell3.Controls.Add(New LiteralControl("$" & FormatNumber(CDbl(showCart.GetValue(4)), 2)))
cellAmount.Controls.Add(New LiteralControl("$" & FormatNumber(CDbl(showCart.GetValue(4)) * CDbl(Session(intI)), 2)))
cellAction.Controls.Add(New LiteralControl("<a href='catalogue.aspx?Actn=Del&amp;delItemId=" & showCart.GetValue(0) & "'>Delete</a>"))

confcell1.Controls.Add(New LiteralControl(showCart.GetValue(1)))
confcell2.Controls.Add(New LiteralControl(Session(intI)))
confcell3.Controls.Add(New LiteralControl("$" & FormatNumber(CDbl(showCart.GetValue(4)), 2)))
confcellAmount.Controls.Add(New LiteralControl("$" & FormatNumber(CDbl(showCart.GetValue(4)) * CDbl(Session(intI)), 2)))

row.Cells.Insert(0, cell1)
row.Cells.Insert(1, cell2)
row.Cells.Insert(2, cell3)
row.Cells.Insert(3, cellAmount)
row.Cells.Insert(4, cellAction)

confrow.Cells.Insert(0, confcell1)
confrow.Cells.Insert(1, confcell2)
confrow.Cells.Insert(2, confcell3)
confrow.Cells.Insert(3, confcellAmount)
Table1.Rows.Add(row)
Table2.Rows.Add(confrow)


' summing amount of all the products added in the cart content
strTotal = strTotal + FormatNumber(CDbl(showCart.GetValue(4)) * CDbl(Session(intI)), 2)
Cache("strTotal") = strTotal
showCart.Close()
Else
'do nothing
End If
' closing recordset
objConn.Close()

please help. also the style falls apart in firefox not sure why.
AnswerRe: onclick event not working in firefox but works in IE Pin
SeMartens2-Feb-09 2:44
SeMartens2-Feb-09 2:44 
QuestionJAVASCRIPT selectNodes() returns 0 if XML contains '&' char Pin
Arindam Tewary1-Feb-09 21:26
professionalArindam Tewary1-Feb-09 21:26 
QuestionAJAX Pin
saurabh200671-Feb-09 17:48
saurabh200671-Feb-09 17:48 
AnswerRe: AJAX Pin
SeMartens2-Feb-09 2:50
SeMartens2-Feb-09 2:50 
GeneralRe: AJAX Pin
saurabh200672-Feb-09 6:36
saurabh200672-Feb-09 6:36 
QuestionJavaScript Error with IE Pin
r aa j1-Feb-09 17:37
r aa j1-Feb-09 17:37 
AnswerRe: JavaScript Error with IE Pin
saurabh200671-Feb-09 19:13
saurabh200671-Feb-09 19:13 
Questionautogenerate column Pin
Mhiny1-Feb-09 16:43
Mhiny1-Feb-09 16:43 
Questionapp.config vs app.xaml [modified] Pin
devvvy31-Jan-09 17:35
devvvy31-Jan-09 17:35 
AnswerRe: app.config vs app.xaml Pin
devvvy31-Jan-09 18:08
devvvy31-Jan-09 18:08 
QuestionWPF and web browser application [modified] Pin
devvvy31-Jan-09 16:02
devvvy31-Jan-09 16:02 
QuestionCSS Problems in IE [modified] Pin
#realJSOP31-Jan-09 2:33
mve#realJSOP31-Jan-09 2:33 
AnswerRe: CSS Problems in IE Pin
Aman Bhullar31-Jan-09 5:27
Aman Bhullar31-Jan-09 5:27 
GeneralRe: CSS Problems in IE Pin
#realJSOP31-Jan-09 5:41
mve#realJSOP31-Jan-09 5:41 
GeneralRe: CSS Problems in IE Pin
Shog931-Jan-09 7:22
sitebuilderShog931-Jan-09 7:22 
GeneralRe: CSS Problems in IE Pin
Guffa1-Feb-09 13:26
Guffa1-Feb-09 13:26 
AnswerRe: CSS Problems in IE Pin
Shog931-Jan-09 8:39
sitebuilderShog931-Jan-09 8:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.