Re: How do make the best colorpicker option ... hopefully with AJAX
am 06.01.2008 12:47:00 von me
"Mikael Syska" wrote in message
news:%23gKqj3AUIHA.1164@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
>
> // ouT
>
> ThatsIT.net.au wrote:
>> somthing like this, this will solve the clicnt side of the problem if I
>> understand it.
>> to send to the server can be solver by adding the values to a hidden
>> field and retrived on a future event, or you can send via the
>> ICallbackEventHandler. I have a sample on how to do this.
>> http://dev.thatsit.net.au/samples/aspnet/postback/default.as px
>>
>>
>>
>>
>> Untitled Page
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> "Mikael Syska" wrote in message
>> news:e75Jq%23$TIHA.5524@TK2MSFTNGP05.phx.gbl...
>>> 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
>>>
>>> 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
>>
Re: How do make the best colorpicker option ... hopefully with AJAX
am 06.01.2008 15:52:35 von Mikael Syska
Hi again,
ThatsIT.net.au wrote:
>
> "Mikael Syska" wrote in message
> news:%23gKqj3AUIHA.1164@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
Re: How do make the best colorpicker option ... hopefully with AJAX
am 06.01.2008 17:48:06 von me
"Mikael Syska" wrote in message
news:eiHFSPHUIHA.4476@TK2MSFTNGP06.phx.gbl...
> Hi again,
>
> ThatsIT.net.au wrote:
>>
>> "Mikael Syska" wrote in message
>> news:%23gKqj3AUIHA.1164@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
Re: How do make the best colorpicker option ... hopefully with AJAX
am 06.01.2008 20:44:05 von Mikael Syska
ThatsIT.net.au wrote:
>
> "Mikael Syska" wrote in message
> news:eiHFSPHUIHA.4476@TK2MSFTNGP06.phx.gbl...
>> Hi again,
>>
>> ThatsIT.net.au wrote:
>>>
>>> "Mikael Syska" wrote in message
>>> news:%23gKqj3AUIHA.1164@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
Re: How do make the best colorpicker option ... hopefully with AJAX
am 07.01.2008 16:11:05 von me
"Mikael Syska" wrote in message
news:u0EjLyJUIHA.1204@TK2MSFTNGP03.phx.gbl...
> ThatsIT.net.au wrote:
>>
>> "Mikael Syska" wrote in message
>> news:eiHFSPHUIHA.4476@TK2MSFTNGP06.phx.gbl...
>>> Hi again,
>>>
>>> ThatsIT.net.au wrote:
>>>>
>>>> "Mikael Syska" wrote in message
>>>> news:%23gKqj3AUIHA.1164@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