473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

question about doPostback javascript function + others

Guys,

Forgive me if I have posted this in the wrong group, it's my first post
and wasn't sure where it should go. If it should be in another group
please let me know.

Right, let me explain my situation.

I am client side developer (js/css/etc) plus I did asp/php server side
stuff. So I know my way about. I'm just starting on the .NET (VB.NET to
be exact) and I have a question about the way the <asp:> controls are
generated client side.

1) function __doPostBack() { }
Can I rewrite this function, it's pretty poor coding and is invalid.
Even the option to put it into an external js file (at least getting it
away from being inline). If so, how do I do this?

2) When adding an element of type "LinkButton" it produces markup like
this.. <a href="javascript:__doPostBack('_ctl1','')">my Link</a> ..which
apart from being shockingly bad markup, it also renders the website
completely inaccessible (due to the reliance of js in the page). I would
like to know how to amend the format that it is outputted as, for
example if I can do this.. <a href="somelink"
onclick="__doPostBack('blah','blah')"> .. instead
I'll leave it at that, I have a lot of questions relating to markup,
accessibility and validation that MS seem to not have thought about when
using the generic controls (I presume the more advanced you get you tend
to build up a library of your own) but an idea on how to solve those 2
questions would be appreciated.

Thanks in advance.

regards,
Ric.
Aug 19 '05 #1
3 1925
Ric,

Let me start that one of the most major improvements that are done in the
next versions of Net are in the designer of the webpage.

In fact are all serverside controls predefined extended HTML controls or a
complex of HTML controls (or other tags) which you know probably all.

To create from a HTML control a serverside control than is this one of the
ways to do.

<iframe id="midFrame" name="midFrame" runat="server"></iframe>

(And I can tell you that I have as well search long for this simple thing
and found it by just reading a message from somebody (Terry Burns), who was
just answering like me in one of these newsgroups)

:-)

The same as you do I leave it at that.

I hope it helps something

Cor

Aug 19 '05 #2
Cor,

Thanks for the reply. I will check out Terry Burns' thread.

However... "...major improvements that are done in the next versions of
Net" is no good for me, I am using VB.NET 2003 and will be for some
time. Microsoft (as part of W3C) shouldn't of overlooked the glaring
mistakes in accessibility/markup/etc.

I don't want to sacrifice my end result because of the inflexibility of
the framework.

But as I say, thank you for the reply.

Ric.
Aug 19 '05 #3
Ric
Thanks for the reply. I will check out Terry Burns' thread.

Although Terry lives in the area of the world where the best English is
spoken, has he never long messages. Telling this was the only thing he told
in that thread I saw it.

(Not that he is not able to write nice, I have seen very nice messages and
webpages from Terry). Terry is normally known in these newsgroup as OHM is a
while not active. Probably to busy with his new business.

However searching for OHM will give you a terrible bunch of messages.

:-)

Cor
Aug 19 '05 #4

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

Similar topics

0
by: Mike | last post by:
Is there a key that can be used to pass to the Page.IsClientScriptBlockRegistered() to check if the dopostback() function has already been registered to the page? If not any ideas on how to check...
0
by: Matt Petteys | last post by:
I'm using 1.1 framework and IE 6.0. A form within a user control generates the following doPostBack method. The control ID of the form is not a valid javascript variable name, ie...
3
by: Mad Scientist Jr | last post by:
I have some javascript I would like to run after a doPostBack occurs: onchange="javascript:__doPostBack('Text1','');" The doPostBack is being added dynamically by .NET when it renders the...
4
by: Zuel | last post by:
Hi Folks. So I have a small problem. My DoPostBack function is not writen to the HTML page nor are the asp:buttons calling the DoPostBack. My Goal is to create a totaly dynamic web page where...
0
by: masoud bayan | last post by:
Hi , I used your suggested code to replace doPostBack in my application, but it seems window.onbeforeunload is called before, window.__doPostBack, so it can not change the condition for showing...
2
by: DSipp | last post by:
First, I am not a developer. My company works with a partner. This partner has a web app that we interact with. All of my systems can connect and login to this site. When we select an issue link,...
6
by: Mark Olbert | last post by:
The doPostBack javascript functioning is not submitting the page when called by linkbuttons (or an autopostback checkbox, for that matter). I'm aware of a problem with Netscape browsers and the...
3
by: Ric Paton | last post by:
Guys, Forgive me if I have posted this in the wrong group, it's my first post and wasn't sure where it should go. If it should be in another group please let me know. Right, let me explain my...
21
by: yeti349 | last post by:
Hi, I'm using the following code to retrieve data from an xml file and populate a javascript array. The data is then displayed in html table form. I would like to then be able to sort by each...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.