switch ($act) {
case 'outside':
echo outside($sel);
break;
....
}
function outside($sel) {
switch ($sel) {
case '1':
$html = colorSelect('kraska'); // функция формирует возможный
список красок.
break;
case '2':
$html = colorSelect('poroshok');
$html .= $add_params;
break;
...
}
return $html;
}
Всё работает, но при этом изменяется ссылка на такую
#:ax:tekst2:fns.php[~q~]act=outside&sel=5
Можно ли сделать, чтобы ссылка не изменялась?
Ruslan
unread,
Sep 30, 2008, 10:42:41 AM9/30/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
нет нельзя. можно применить linkEqual для преобразования в более
лицеприятный вид.
Doctor
unread,
Oct 1, 2008, 5:09:16 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
А может можно каким-то другим путём выполнить такое действие? Я
пробовал через AddScript, но тогда вылазит ошибка про неверный формат
xml. Может ещё кокой-то вариант есть?
Ruslan
unread,
Oct 1, 2008, 5:17:09 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
какое такое? вы можете нормально описать что вы хотите получить? вы
думаете напечатав кучу кода - я сразу вникну в вашу идею?
опишите детально что вам надо.
Doctor
unread,
Oct 1, 2008, 5:46:49 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
есть список опций товара. Например:
опция 1
опция 2
опция 3
надо чтобы при выборе какой-то опции подгружались дополнительные
возможности выбора, например такие как цвет, рисунок, размер, ... и
изображение выбранного товара.
Ruslan
unread,
Oct 1, 2008, 5:53:10 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
и какие трудности повесить hax на событие <select onchange=... ?
Doctor
unread,
Oct 1, 2008, 6:38:10 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
Так трудностей в том, чтобы повесить hax нету (см. первое сообщение).
Трудности в том, что ссылка изменяется. Вопрос в том, есть ли какой-то
способ организовать нужную, описанную выше, функциональность без
изменения адреса ссылки ?
Ruslan
unread,
Oct 1, 2008, 6:41:35 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
добавь параметр в hax nohistory:1 или nohistory:true
Doctor
unread,
Oct 1, 2008, 7:21:53 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
Супер. Огромное спасибо. Сейчас то, что надо, только теперь вылазит
ошибка: SRAX.get("ax:genid:4") is null
Что это может значить?
Doctor
unread,
Oct 1, 2008, 7:25:45 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
А при повторных выборах данной опции ошибка меняется:
Ошибка: SRAX.get("ax:genid:4") is null
Ошибка: SRAX.get("ax:genid:8") is null
Ошибка: SRAX.get("ax:genid:11") is null
Ошибка: SRAX.get("ax:genid:13") is null
...
Ruslan
unread,
Oct 1, 2008, 7:36:23 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
SRAX.get - функция доступа к лементу по его ИД аналог функции
document.getElementById
Doctor
unread,
Oct 1, 2008, 7:40:16 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
А "ax:genid:цифра" - это id элемента?
Странно. Но элемента с ид genid у меня нет.
Doctor
unread,
Oct 1, 2008, 7:47:58 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
Вот что показывает farebug: Warning и две ошибки
Warning => addTo : element = ax:genid:4 not found
ob.toString is not a function
[Break on this error] var all =
obj.getAllResponseHeaders().split('\n');
fullajax.js (line 2497)
Ruslan
unread,
Oct 1, 2008, 8:38:54 AM10/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fullajax
заливайте кудато посмотрим, а то это гадание на кофейной гуще