473,511 Members | 14,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do make the best colorpicker option ... hopefully with AJAX

Hi,

I have a problem ...:
If you look at http://syska.dk/upload/eb-14.jpeg you can see some names
to the right ... Alexandro, syska, resurrected.

I want an option to pick a new color for the name when clicking it.

I have a panel with 216 different colors, put into a <table>

But I can't figure out how to make it ... so that I know witch name was
clicked and still get the colorId ...

Also I want to have the "player list" in a updatePanel as I want to use
AJAX ....

I thought it was simple, but I can't figure out, how to do it ...

best regards
Mikael Syska
Jan 6 '08 #1
4 1079
Hi again,

ThatsIT.net.au wrote:
>
"Mikael Syska" <ne****@syska.dkwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Hi,

You are the man ... that solved the last part ... now I will look into
the link you sent ... which also seem to be the best idea with a web
service or some kind ... so I dont have to do full repost of the page,
if the user just want to change color ....

But what about security here ... ? Since I dont have the SesssionID or
anything at the webservice ?

would you just send it to the service, with some special random text
made at login time ... and also control the ip address .... ?

Not sure what you mean here.
Can you explain a bit more
Maybe it was a little bit to fast explained.

I did the communication with the server via a webservice ... and it
works, but since I dont have access to the Session object in the
webservice, I can't do any authentication.

So ... will the Session object be available with the link you provided ?

Or are there some other smart way I can do it ?

Since later I will implement users ... I will have to know if there are
authenticated, so they can't change other users data ...
>
>>
[snip]

best regards
Mikael Syska
Jan 6 '08 #2

"Mikael Syska" <ne****@syska.dkwrote in message
news:ei**************@TK2MSFTNGP06.phx.gbl...
Hi again,

ThatsIT.net.au wrote:
>>
"Mikael Syska" <ne****@syska.dkwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>Hi,

You are the man ... that solved the last part ... now I will look into
the link you sent ... which also seem to be the best idea with a web
service or some kind ... so I dont have to do full repost of the page,
if the user just want to change color ....

But what about security here ... ? Since I dont have the SesssionID or
anything at the webservice ?

would you just send it to the service, with some special random text
made at login time ... and also control the ip address .... ?

Not sure what you mean here.
Can you explain a bit more

Maybe it was a little bit to fast explained.

I did the communication with the server via a webservice ... and it works,
but since I dont have access to the Session object in the webservice, I
can't do any authentication.

So ... will the Session object be available with the link you provided ?
Yes it will

Or are there some other smart way I can do it ?

Since later I will implement users ... I will have to know if there are
authenticated, so they can't change other users data ...
Yes it will work fine.

You might want to look up asp.net profiles to oraganize your user data.
it uses sql database to keep setting for users authenticated or not

>>
>>>
[snip]

best regards
Mikael Syska
Jan 6 '08 #3
ThatsIT.net.au wrote:
>
"Mikael Syska" <ne****@syska.dkwrote in message
news:ei**************@TK2MSFTNGP06.phx.gbl...
>Hi again,

ThatsIT.net.au wrote:
>>>
"Mikael Syska" <ne****@syska.dkwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl.. .
Hi,

You are the man ... that solved the last part ... now I will look
into the link you sent ... which also seem to be the best idea with
a web service or some kind ... so I dont have to do full repost of
the page, if the user just want to change color ....

But what about security here ... ? Since I dont have the SesssionID
or anything at the webservice ?

would you just send it to the service, with some special random text
made at login time ... and also control the ip address .... ?

Not sure what you mean here.
Can you explain a bit more

Maybe it was a little bit to fast explained.

I did the communication with the server via a webservice ... and it
works, but since I dont have access to the Session object in the
webservice, I can't do any authentication.

So ... will the Session object be available with the link you provided ?

Yes it will

>Or are there some other smart way I can do it ?

Since later I will implement users ... I will have to know if there
are authenticated, so they can't change other users data ...

Yes it will work fine.

You might want to look up asp.net profiles to oraganize your user data.
it uses sql database to keep setting for users authenticated or not

>>>

[snip]

best regards
Mikael Syska
Nice ...

As I can see it ... it aint possible to have more than one Async
callback per page or am I missing something here ?

Since the implementation of the interface also specify that is going to
happen as return value and input param ...

btw ... thanks very much for the help, it has solved my problem.

// ouT
Jan 6 '08 #4

"Mikael Syska" <ne****@syska.dkwrote in message
news:u0**************@TK2MSFTNGP03.phx.gbl...
ThatsIT.net.au wrote:
>>
"Mikael Syska" <ne****@syska.dkwrote in message
news:ei**************@TK2MSFTNGP06.phx.gbl...
>>Hi again,

ThatsIT.net.au wrote:

"Mikael Syska" <ne****@syska.dkwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl. ..
Hi,
>
You are the man ... that solved the last part ... now I will look into
the link you sent ... which also seem to be the best idea with a web
service or some kind ... so I dont have to do full repost of the page,
if the user just want to change color ....
>
But what about security here ... ? Since I dont have the SesssionID or
anything at the webservice ?
>
would you just send it to the service, with some special random text
made at login time ... and also control the ip address .... ?

Not sure what you mean here.
Can you explain a bit more

Maybe it was a little bit to fast explained.

I did the communication with the server via a webservice ... and it
works, but since I dont have access to the Session object in the
webservice, I can't do any authentication.

So ... will the Session object be available with the link you provided ?

Yes it will

>>Or are there some other smart way I can do it ?

Since later I will implement users ... I will have to know if there are
authenticated, so they can't change other users data ...

Yes it will work fine.

You might want to look up asp.net profiles to oraganize your user data.
it uses sql database to keep setting for users authenticated or not

>>>>

>
[snip]

best regards
Mikael Syska

Nice ...

As I can see it ... it aint possible to have more than one Async callback
per page or am I missing something here ?

Since the implementation of the interface also specify that is going to
happen as return value and input param ...

btw ... thanks very much for the help, it has solved my problem.


You can have as many as you want.

what I do is send a string with the "|" symbol as a separator

so I may have a string like this

"job1|value1|value2"

and from another event I may have

"job2|value1|value2|value3"

on the client side is split the string into array at the "|" symbol

the first value in the array "job1" or "job2" tells me what job needs doing

when I send back the result send it back the same way

"job1|result1|result2"

then I split it into a array on the client side using the first value to
identify the job again.

// ouT
Jan 7 '08 #5

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

Similar topics

7
1846
by: Ben | last post by:
Hi all, I'm not yet good at thinking the right way in c++ so although I could solve this problem, I'm not sure if they way I'm thinking of is the best way to do it. I need a data type or class...
4
4532
by: Nuno | last post by:
Hi, Maybe this question alreay was asked, but now, i'm asking today... today each ajax framework is the best one to start (open source of course). I already see so much (ASP.NET AJAX, GWT,...
1
217
by: nogueira_cristina | last post by:
Hello, I hope someone can clarify the following for me. I have page which replaces the code of a certain <divtag with other code (which on itself contains another div). The replacing of the...
3
2396
by: NetWave | last post by:
Hi, For my next project I'm going to need Ajax, so I'm in about to read some books on ASP.NET Ajax. While reading Rick Strahl's blog I stumbled upon jQuery. I've been to the website and seen...
9
1025
by: Alex | last post by:
Hello, I have begun working with ajax recently to populate a drop down in a form, where prviously the whole page would have to reload. Works great. Where the form originally had a standard...
10
1477
by: Fred | last post by:
I'm researching and I see various approaches, with or without regex. So I'm asking for opinions on which is the best - that is, the most thorough. Thanks.
1
4425
by: fidgen | last post by:
Hiya, I'm trying to get a AJAX driven update to my list of news articles, so when users click the title of the news article, it pops up the article content in a thickbox overlay. Retrieving...
4
5088
by: phub11 | last post by:
Hi all, I have started using AJAX to populate drop downs from a mySQL database; however, I want the option of modifying the selected OPTION of the drop down using an array of radiobuttons...
0
7252
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
7371
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,...
0
7517
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...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
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...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
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 ...
0
452
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...

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.